Cleanup
This commit is contained in:
parent
71db8af1cf
commit
06b5916f58
|
@ -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
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "vfat";
|
format = "vfat";
|
||||||
mountpoint = "/boot";
|
mountpoint = "/boot";
|
||||||
mountOptions = ["defaults"];
|
mountOptions = ["defaults" "umask=0077"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "vfat";
|
format = "vfat";
|
||||||
mountpoint = "/boot";
|
mountpoint = "/boot";
|
||||||
mountOptions = ["defaults"];
|
mountOptions = ["defaults" "umask=0077"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue