summaryrefslogtreecommitdiff
path: root/modules/nix-common.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nix-common.nix')
-rw-r--r--modules/nix-common.nix24
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" ];
+ };
+}