-
Notifications
You must be signed in to change notification settings - Fork 2
/
default.nix
44 lines (39 loc) · 1.01 KB
/
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
{
inputs,
config,
withSystem,
...
}: {
imports = [./hermes ./fatalis ./zorah];
_module.args.mkNixos = system: extraModules: let
specialArgs =
withSystem system
({
inputs',
self',
...
}: {inherit self' inputs' inputs;});
in
inputs.nixpkgs.lib.nixosSystem {
inherit specialArgs;
modules =
[
#-- Core
inputs.nixpkgs.nixosModules.readOnlyPkgs
{nixpkgs.pkgs = withSystem system ({pkgs, ...}: pkgs);}
config.flake.nixosModules.common
inputs.nix-common.nixosModules.default
inputs.noshell.nixosModules.default
{programs.noshell.enable = true;}
inputs.home-manager.nixosModules.home-manager
{
home-manager.sharedModules = [
config.flake.homeModules.common
inputs.nix-common.homeModules.default
];
home-manager.extraSpecialArgs = specialArgs;
}
]
++ extraModules;
};
}