first
This commit is contained in:
18
nixos/standard/hosts/common/default.nix
Normal file
18
nixos/standard/hosts/common/default.nix
Normal file
@ -0,0 +1,18 @@
|
||||
# Common configuration for all hosts
|
||||
|
||||
{ config, lib, inputs, ... }: {
|
||||
nix = {
|
||||
settings = {
|
||||
experimental-features = "nix-command flakes";
|
||||
trusted-users = [ "root" "m3tam3re" ];
|
||||
};
|
||||
gc = {
|
||||
automatic = true;
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
optimise.automatic = true;
|
||||
registry = (lib.mapAttrs (_: flake: { inherit flake; }))
|
||||
((lib.filterAttrs (_: lib.isType "flake")) inputs);
|
||||
nixPath = [ "/etc/nix/path" ];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user