diff options
| author | Franck Cuny <franck@fcuny.net> | 2024-03-11 17:26:22 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2024-03-11 17:26:22 -0700 |
| commit | 1248d431ff09c15df666b381059efb8884718a9b (patch) | |
| tree | 7959ce50cd52a99998430b13d0e47feff9630789 /nix/hosts/common/nix.nix | |
| parent | reorganize common files for hosts (diff) | |
| download | infra-1248d431ff09c15df666b381059efb8884718a9b.tar.gz | |
switch to absolute path
Diffstat (limited to 'nix/hosts/common/nix.nix')
| -rw-r--r-- | nix/hosts/common/nix.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/nix/hosts/common/nix.nix b/nix/hosts/common/nix.nix new file mode 100644 index 0000000..c828a16 --- /dev/null +++ b/nix/hosts/common/nix.nix @@ -0,0 +1,24 @@ +{ pkgs, ... }: { + nix = { + package = pkgs.nixFlakes; + + gc = { + user = "root"; + automatic = true; + interval = { Weekday = 0; Hour = 2; Minute = 0; }; + options = "--delete-older-than 30d"; + }; + + settings = { + trusted-users = [ "@admin" "fcuny" ]; + experimental-features = [ "nix-command" "flakes" ]; + }; + }; + + nixpkgs.config = { + allowUnfree = true; + permittedInsecurePackages = [ + "nix-2.16.2" # FIXME https://github.com/nix-community/nixd/issues/357 + ]; + }; +} |
