-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdefault.nix
46 lines (40 loc) · 1010 Bytes
/
default.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
{ lib
, inputs
, self
, commonModules
, systemModules
, machineConfigurationPath
, machineConfigurationPathExist
, machineModulesPath
, machineModulesPathExist
, platform ? null
, stateVersion ? null
, ...
}:
{
imports = [
inputs.home-manager.nixosModules.home-manager
inputs.stylix.nixosModules.stylix
inputs.impermanence.nixosModules.impermanence
inputs.disko.nixosModules.disko
inputs.lanzaboote.nixosModules.lanzaboote
inputs.chaotic.nixosModules.default
inputs.nix-topology.nixosModules.default
inputs.nur.nixosModules.nur
"${commonModules}"
"${systemModules}"
"${self}/overlays/nixpkgs"
]
++ lib.optional machineConfigurationPathExist machineConfigurationPath
++ lib.optional machineModulesPathExist machineModulesPath;
module.nix-config.enable = true;
# System version
system = { inherit stateVersion; };
# HostPlatform
nixpkgs = {
overlays = [
inputs.nix-topology.overlays.default
];
hostPlatform = platform;
};
}