Compare commits

...

1 commit

Author SHA1 Message Date
b2e5d28f2b
nix config to save some space 2024-10-13 15:12:33 +02:00
3 changed files with 28 additions and 15 deletions

View file

@ -5,18 +5,11 @@
}: {
imports = [
./admins.nix
./nix_keys.nix
./nix.nix
./prometheusNodeExporter.nix
../modules/impermanence.nix
];
nix = {
extraOptions = ''
experimental-features = nix-command flakes
builders-use-substitutes = true
'';
};
networking = {
firewall = {
# these shoud be default, but better make sure!

27
nixos/roles/nix.nix Normal file
View file

@ -0,0 +1,27 @@
{
nix = {
settings = {
trusted-public-keys = [
"nerflap2-1:pDZCg0oo9PxNQxwVSQSvycw7WXTl53PGvVeZWvxuqJc="
"gonne.mathebau.de-1:FsXFyFiBFE/JxC9MCkt/WuiXjx5dkRI9RXj0FxOQrV0="
];
experimental-features = [
"flakes"
"nix-command"
];
auto-optimise-store = true;
fallback = true;
builders-use-substitutes = true;
};
gc = {
persistent = true;
dates = "weekly";
options = "-d";
randomizedDelaySec = "5h";
};
optimise = {
dates = [];
automatic = true;
};
};
}

View file

@ -1,7 +0,0 @@
{
imports = [];
nix.settings.trusted-public-keys = [
"nerflap2-1:pDZCg0oo9PxNQxwVSQSvycw7WXTl53PGvVeZWvxuqJc="
"gonne.mathebau.de-1:FsXFyFiBFE/JxC9MCkt/WuiXjx5dkRI9RXj0FxOQrV0="
];
}