You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
461 B
Nix
24 lines
461 B
Nix
9 years ago
|
{ config, lib, pkgs, ... }:
|
||
9 years ago
|
|
||
|
let
|
||
9 years ago
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||
8 years ago
|
annuaire = config.r6d.machines;
|
||
4 years ago
|
currentMachine = annuaire."${config.networking.fqdn}";
|
||
8 years ago
|
flags = currentMachine.configurationFlags;
|
||
9 years ago
|
in
|
||
|
|
||
4 years ago
|
{
|
||
9 years ago
|
|
||
9 years ago
|
# Automatic update & automatic clean
|
||
9 years ago
|
|
||
4 years ago
|
system.autoUpgrade.enable = flags.auto-upgrade;
|
||
4 years ago
|
nix = {
|
||
|
autoOptimiseStore = true;
|
||
|
gc = {
|
||
|
automatic = true;
|
||
|
dates = "daily";
|
||
|
options = "--delete-older-than 7d";
|
||
|
};
|
||
|
};
|
||
9 years ago
|
}
|