Cleanup
This commit is contained in:
parent
71db8af1cf
commit
06b5916f58
|
@ -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
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
mountOptions = ["defaults"];
|
||||
mountOptions = ["defaults" "umask=0077"];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
mountOptions = ["defaults"];
|
||||
mountOptions = ["defaults" "umask=0077"];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{...}: {
|
||||
sops = {
|
||||
sops = {
|
||||
defaultSopsFile = ../../../secrets/silver.yaml;
|
||||
age.sshKeyPaths = ["/persist/etc/ssh/ssh_host_ed25519_key"];
|
||||
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue