This commit is contained in:
minish 2025-01-20 17:05:01 -05:00
parent 71db8af1cf
commit 06b5916f58
Signed by: min
SSH Key Fingerprint: SHA256:PDf6DSaU0lWsQ57NzQGdm8HUKftULYFYzxPJolepY58
5 changed files with 32 additions and 29 deletions

View File

@ -1,15 +1,15 @@
{inputs, ...}: let {inputs, ...}: let
systems = { systems = ["silver"];
# eidola = import ./eidola {inherit inputs;};
silver = import ./silver {inherit inputs;};
};
inherit (inputs.nixpkgs) lib; inherit (inputs.nixpkgs) lib;
makeNixosConfigurations = systems: makeNixosConfigurations = systems:
lib.mapAttrs lib.listToAttrs (lib.map
(name: system: (name: let
lib.nixosSystem { system = import ./${name} {inherit inputs;};
in {
inherit name;
value = lib.nixosSystem {
inherit (system) system; inherit (system) system;
modules = modules =
@ -23,8 +23,9 @@
../modules ../modules
]; ];
};
}) })
systems; systems);
makeDeployRsNodes = systems: makeDeployRsNodes = systems:
lib.mapAttrs lib.mapAttrs

View File

@ -22,7 +22,7 @@
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
mountpoint = "/boot"; mountpoint = "/boot";
mountOptions = ["defaults"]; mountOptions = ["defaults" "umask=0077"];
}; };
}; };

View File

@ -22,7 +22,7 @@
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
mountpoint = "/boot"; mountpoint = "/boot";
mountOptions = ["defaults"]; mountOptions = ["defaults" "umask=0077"];
}; };
}; };

View File

@ -1,5 +1,6 @@
{ {
inputs, inputs,
config,
pkgs, pkgs,
... ...
}: { }: {
@ -40,16 +41,17 @@
dates = ["daily"]; dates = ["daily"];
}; };
settings = {
# Make sure flakes are enabled # Make sure flakes are enabled
settings.experimental-features = ["nix-command" "flakes"]; experimental-features = ["nix-command" "flakes"];
flake-registry = "";
nix-path = config.nix.nixPath;
# Trust wheel
trusted-users = ["@wheel"];
};
extraOptions = '' extraOptions = ''
keep-outputs = true keep-outputs = true
keep-derivations = true keep-derivations = true
flake-registry = ${builtins.toFile "flake-registry" (builtins.toJSON {
version = 2;
flakes = [];
})}
''; '';
nixPath = ["nixpkgs=${pkgs.path}"]; nixPath = ["nixpkgs=${pkgs.path}"];
registry = { registry = {