system
This commit is contained in:
parent
b35442d180
commit
52c4a98610
3 changed files with 17 additions and 6 deletions
15
flake.nix
15
flake.nix
|
|
@ -39,14 +39,21 @@
|
||||||
|
|
||||||
defaultConfig = {
|
defaultConfig = {
|
||||||
desktop = true;
|
desktop = true;
|
||||||
|
unfree = [
|
||||||
|
"steam"
|
||||||
|
"steam-unwrapped"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
makeHost = host: let
|
makeHost = host: let
|
||||||
config = defaultConfig // import ./hosts/${host}/config.nix;
|
conf = defaultConfig // import ./hosts/${host}/config.nix;
|
||||||
in
|
in
|
||||||
lib.nixosSystem {
|
lib.nixosSystem {
|
||||||
system = config.system;
|
system = conf.system;
|
||||||
pkgs = import nixpkgs {system = config.system;};
|
pkgs = import nixpkgs {
|
||||||
|
system = conf.system;
|
||||||
|
config.allowUnfreePredicate = ( pkg: builtins.elem (lib.getName pkg) conf.unfree );
|
||||||
|
};
|
||||||
specialArgs = inputs;
|
specialArgs = inputs;
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/${host}/default.nix
|
./hosts/${host}/default.nix
|
||||||
|
|
@ -54,7 +61,7 @@
|
||||||
./system
|
./system
|
||||||
{networking.hostName = host;}
|
{networking.hostName = host;}
|
||||||
]
|
]
|
||||||
++ lib.optionals config.desktop [
|
++ lib.optionals conf.desktop [
|
||||||
./home
|
./home
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
{ lib, ...}: {
|
||||||
nix = {
|
nix = {
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
|
|
@ -12,4 +12,8 @@
|
||||||
trusted-users = ["root" "@wheel"];
|
trusted-users = ["root" "@wheel"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# nixpkgs.config.allowUnfreePredicate = (pkg: builtins.elem (lib.getName pkg) [
|
||||||
|
# "steam"
|
||||||
|
# ]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{ sops-nix, ... }: {
|
{ sops-nix, ... }: {
|
||||||
imports = [ sops-nix.nixosModules.sops ];
|
imports = [ sops-nix.nixosModules.sops ];
|
||||||
|
|
||||||
sops.age.keyFile = /persist/data/home/lilith/.config.sops/age/keys.txt;
|
sops.age.keyFile = /persist/data/home/lilith/.config/sops/age/keys.txt;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue