This commit is contained in:
Lilith 2025-02-27 02:00:40 +01:00
parent b35442d180
commit 52c4a98610
Signed by: lilith
GPG key ID: 8712A0F317C37175
3 changed files with 17 additions and 6 deletions

View file

@ -39,14 +39,21 @@
defaultConfig = {
desktop = true;
unfree = [
"steam"
"steam-unwrapped"
];
};
makeHost = host: let
config = defaultConfig // import ./hosts/${host}/config.nix;
conf = defaultConfig // import ./hosts/${host}/config.nix;
in
lib.nixosSystem {
system = config.system;
pkgs = import nixpkgs {system = config.system;};
system = conf.system;
pkgs = import nixpkgs {
system = conf.system;
config.allowUnfreePredicate = ( pkg: builtins.elem (lib.getName pkg) conf.unfree );
};
specialArgs = inputs;
modules = [
./hosts/${host}/default.nix
@ -54,7 +61,7 @@
./system
{networking.hostName = host;}
]
++ lib.optionals config.desktop [
++ lib.optionals conf.desktop [
./home
];
};

View file

@ -1,4 +1,4 @@
{...}: {
{ lib, ...}: {
nix = {
gc = {
automatic = true;
@ -12,4 +12,8 @@
trusted-users = ["root" "@wheel"];
};
};
# nixpkgs.config.allowUnfreePredicate = (pkg: builtins.elem (lib.getName pkg) [
# "steam"
# ]);
}

View file

@ -1,5 +1,5 @@
{ sops-nix, ... }: {
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;
}