summaryrefslogtreecommitdiff
path: root/nixos/modules/system/nix
diff options
context:
space:
mode:
authorseraphim <18ycm9tx@anonaddy.me>2026-07-29 22:09:05 +0700
committerseraphim <18ycm9tx@anonaddy.me>2026-07-29 22:09:05 +0700
commit73ddb338cd7542f9569a9ab5cb0481b4f0636710 (patch)
tree559d8c542d6e965e674a46c9451efc1cb80f203a /nixos/modules/system/nix
parentabd12d161f0aaac458abeb139556ea5ccc1fcae8 (diff)
.
Diffstat (limited to 'nixos/modules/system/nix')
-rw-r--r--nixos/modules/system/nix/default.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/nixos/modules/system/nix/default.nix b/nixos/modules/system/nix/default.nix
new file mode 100644
index 0000000..8f33990
--- /dev/null
+++ b/nixos/modules/system/nix/default.nix
@@ -0,0 +1,21 @@
+{ config, pkgs, lib, inputs, ... }:
+
+{
+ nix.settings.experimental-features = [ "nix-command" "flakes" ];
+ nixpkgs.config.allowUnfree = true;
+
+ nix.gc = {
+ automatic = true;
+ dates = "weekly";
+ options = "--delete-older-than 7d";
+ };
+
+ programs.nix-ld.enable = true;
+ services.envfs.enable = true;
+ security.polkit.enable = true;
+
+ environment.variables = {
+ SSL_CERT_FILE = "/etc/ssl/certs/ca-certificates.crt";
+ NIX_SSL_CERT_FILE = "/etc/ssl/certs/ca-certificates.crt";
+ };
+} \ No newline at end of file