-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasesystem.nix
More file actions
38 lines (38 loc) · 942 Bytes
/
basesystem.nix
File metadata and controls
38 lines (38 loc) · 942 Bytes
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
{ inputs, ... }:
let
homeManagerLib = import ./homemanager.nix { inherit inputs; };
overlayModule = import ../../overlays { inherit inputs; };
in
{
mkBaseSystem =
{
system,
hostname,
systemFunction,
modules ? [ ],
}:
let
overlays = (overlayModule.perSystem { inherit system; })._module.args.overlays;
pkgs = import inputs.nixpkgs { inherit system overlays; };
in
systemFunction {
inherit system;
modules = [
{
nixpkgs = {
inherit overlays;
hostPlatform = system;
config.allowUnfree = true;
};
_module.args = {
inherit inputs system;
};
}
{ home-manager = homeManagerLib.mkHomeManagerConfig { inherit hostname system pkgs; }; }
../../hosts/_modules/common
] ++ modules;
specialArgs = {
inherit inputs hostname;
};
};
}