{ config, pkgs, ... }: { imports = [./lix.nix]; # Manage nix installation with helper script programs.nh = { enable = true; clean.enable = true; clean.extraArgs = "--keep-since 30d --keep 3"; flake = "/home/defin/.flake"; }; nix = { settings = { # Users allowed to run nix allowed-users = [ "root" "@wheel" "@builders" "@video" ]; experimental-features = [ "nix-command" "flakes" ]; extra-substituters = [ "https://cache.lix.systems" ]; trusted-public-keys = [ "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=" ]; }; # Clean up old generations after 30 days # gc = { # automatic = true; # dates = "weekly"; # options = "--delete-older-than 30d"; # }; }; }