-
Notifications
You must be signed in to change notification settings - Fork 0
/
configurations.nix
59 lines (50 loc) · 1.37 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{ self, lib, ... }:
let
nixos-hw = self.inputs.nixos-hardware.nixosModules;
kmonad = self.inputs.kmonad.nixosModules;
overlays = [
self.inputs.nixGL.overlay
];
unfree_whitelist = [
"uhk-agent"
];
mkSystem = import ./nix/mkSystem.nix {
inherit self lib overlays unfree_whitelist;
};
mkHome = import ./nix/mkHome.nix {
inherit self lib overlays unfree_whitelist;
};
in
{
flake = {
# VM and host systems
nixosConfigurations = {
# Eowyn: Dev Laptop
Eowyn = mkSystem "Eowyn" "x86_64-linux"
{ allowUnfree = true;
user = "andy";
extraModules = [
nixos-hw.lenovo-thinkpad-e14-intel
kmonad.default
];
};
# Faramir: Dev VM
Faramir = mkSystem "Faramir" "x86_64-linux"
{ allowUnfree = true;
user = "andy";
isVM = true;
isBareMetal = false;
};
};
# Homes
homeConfigurations = {
# TODO: find a way to get host system value instead of hardcoding
"andy@Galadriel" = mkHome "andy" "x86_64-linux"
{ extraImports = [ ./users/andy/Galadriel.nix ]; };
"andy@Eowyn" = mkHome "andy" "x86_64-linux"
{ extraImports = [ ./users/andy/Eowyn.nix ]; };
"andy@Saruman" = mkHome "abelleisle" "aarch64-darwin"
{ extraImports = [ ./users/abelleisle/Saruman.nix ]; };
};
};
}