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,30 +1,31 @@
{inputs, ...}: let
systems = {
# eidola = import ./eidola {inherit inputs;};
silver = import ./silver {inherit inputs;};
};
systems = ["silver"];
inherit (inputs.nixpkgs) lib;
makeNixosConfigurations = systems:
lib.mapAttrs
(name: system:
lib.nixosSystem {
inherit (system) system;
lib.listToAttrs (lib.map
(name: let
system = import ./${name} {inherit inputs;};
in {
inherit name;
value = lib.nixosSystem {
inherit (system) system;
modules =
system.modules
++ [
{
_module.args = {
inherit inputs;
};
}
modules =
system.modules
++ [
{
_module.args = {
inherit inputs;
};
}
../modules
];
../modules
];
};
})
systems;
systems);
makeDeployRsNodes = systems:
lib.mapAttrs

View File

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

View File

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

View File

@ -1,5 +1,5 @@
{...}: {
sops = {
sops = {
defaultSopsFile = ../../../secrets/silver.yaml;
age.sshKeyPaths = ["/persist/etc/ssh/ssh_host_ed25519_key"];

View File

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