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 = {
|
||||
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
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
# ]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue