diff options
Diffstat (limited to 'modules/nixos/nix-common.nix')
| -rw-r--r-- | modules/nixos/nix-common.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/nixos/nix-common.nix b/modules/nixos/nix-common.nix new file mode 100644 index 0000000..6e4d373 --- /dev/null +++ b/modules/nixos/nix-common.nix @@ -0,0 +1,19 @@ +{ config, pkgs, ... }: { + + nix = { + settings = { + allowed-users = [ "@wheel" "@builders" "@video" ]; + experimental-features = [ "nix-command" "flakes" ]; + }; + + # Clean up old generations after 30 days + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + + # Users allowed to run nix + # allowedUsers = [ "root" ]; + }; +} |
