-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
68 lines (61 loc) · 1.82 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
# initial flake.nix generated with 'nix flake init -t nix-darwin' with
# structural changes based on github.com/mitchellh/nixos-config
description = "nixos and nix-darwin configurations";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
wsl = {
url = "github:nix-community/NixOS-WSL/main";
inputs.nixpkgs.follows = "nixpkgs";
};
hardware = {
url = "github:NixOS/nixos-hardware/master";
};
};
outputs = { self, nixpkgs, wsl, hardware, ... }:
let
mkSystem = import ./nix/mkSystem.nix {
inherit self nixpkgs;
};
in
{
darwinConfigurations."ESINAI-Q6K2T5H20N" = mkSystem "ESINAI-Q6K2T5H20N" {
system = "aarch64-darwin";
user = "ehdens";
darwin = true;
};
darwinConfigurations."ESINAI-C02X91VSJGH6" = mkSystem "ESINAI-C02X91VSJGH6" {
system = "x86_64-darwin";
user = "ehdens";
darwin = true;
};
nixosConfigurations."vm-aarch64" = mkSystem "vm-aarch64" {
system = "aarch64-linux";
user = "test";
};
darwinConfigurations."alnilam" = mkSystem "alnilam" {
system = "x86_64-darwin";
user = "ehden";
darwin = true;
};
nixosConfigurations."alnitak-wsl" = mkSystem "alnitak-wsl" {
system = "x86_64-linux";
user = "alnitak";
wsl = true;
hardware = wsl.nixosModules.wsl;
};
nixosConfigurations."banjo" = mkSystem "banjo" {
system = "aarch64-linux";
user = "banjo";
hardware = hardware.nixosModules.raspberry-pi-4;
};
};
}