diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2023-08-30 22:56:23 +0200 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2023-08-30 22:56:23 +0200 |
| commit | e68f05c78c57d2d719929b42e9659511d14af455 (patch) | |
| tree | 15170de3c0e796b40b51674ef59a6dc122f8f7b9 /modules/nix-common.nix | |
Creating initial commit.
Diffstat (limited to 'modules/nix-common.nix')
| -rw-r--r-- | modules/nix-common.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/nix-common.nix b/modules/nix-common.nix new file mode 100644 index 0000000..874e2d6 --- /dev/null +++ b/modules/nix-common.nix @@ -0,0 +1,24 @@ +{ config, pkgs, ... }: { + + nixpkgs = { + # texlive.combined.scheme-medium; + config.allowUnfree = true; + }; + + 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" ]; + }; +} |
