base: split maintenance config into own module
This commit is contained in:
@@ -29,6 +29,7 @@ in
|
||||
imports = [
|
||||
./borg-config.nix
|
||||
./grafana-alloy.nix
|
||||
./maintenance.nix
|
||||
./network.nix
|
||||
./qemu.nix
|
||||
./secrets.nix
|
||||
@@ -55,13 +56,6 @@ in
|
||||
PAGER = "nvimpager";
|
||||
};
|
||||
|
||||
# Maintenance
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 14d";
|
||||
};
|
||||
|
||||
nix.settings = {
|
||||
auto-optimise-store = true;
|
||||
cores = 2;
|
||||
|
20
base/maintenance.nix
Normal file
20
base/maintenance.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
# Module: base/maintenance
|
||||
# Configure nix-store optimization, log rotations, etc
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
pkgsUnstable,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 14d";
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user