-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configurations.nix
41 lines (36 loc) · 1.44 KB
/
configurations.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
flake-lib: pkgs:
let
keys = import ./secrets/keys.nix;
in
{
nixosConfigurations = with flake-lib.nixos; {
# Desktops
"neo-wiro-laptop" = createSystem pkgs [
(system "neo-wiro-laptop" "laptop")
(managedDiskLayout "luks-btrfs" { device = "nvme0n1"; swapSize = 12; })
(user "milomoisson" { description = "Milo Moisson"; profile = "desktop"; keys = keys.users; })
];
"archaic-wiro-laptop" = createSystem pkgs [
(system "archaic-wiro-laptop" "laptop")
(user "milomoisson" { description = "Milo Moisson"; profile = "desktop"; keys = keys.users; })
];
# # Servers
# "weird-row-server" = createSystem pkgs [
# (system "weird-row-server" "server")
# (user "milomoisson" { description = "Milo Moisson"; profile = "minimal"; keys = keys.users; })
# ];
};
# I bundle my Home Manager config via the NixOS modules which create system generations and give free rollbacks.
# However, in non-NixOS contexts, you can still use Home Manager to manage dotfiles using this template.
homeConfigurations = with flake-lib.home-manager; {
"epita" = createHome pkgs [
(home "milo.moisson" "/home/milo.moisson" "lightweight")
];
};
darwinConfigurations = with flake-lib.darwin; {
"apple-wiro-laptop" = createSystem pkgs [
(system "apple-wiro-laptop" "macintosh")
(user "milomoisson" { description = "Milo Moisson"; profile = "macintosh"; keys = keys.users; })
];
};
}