From e68f05c78c57d2d719929b42e9659511d14af455 Mon Sep 17 00:00:00 2001 From: Devin Finlinson Date: Wed, 30 Aug 2023 22:56:23 +0200 Subject: Creating initial commit. --- modules/nix-common.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 modules/nix-common.nix (limited to 'modules/nix-common.nix') 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" ]; + }; +} -- cgit v1.2.3