From 9f62563cabfa0be2b114cac4618e3449b49d5638 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Sun, 7 Dec 2025 19:47:49 +0200 Subject: [PATCH] feat: nix --- modules/nixos/nix.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 modules/nixos/nix.nix diff --git a/modules/nixos/nix.nix b/modules/nixos/nix.nix new file mode 100644 index 0000000..e1ae565 --- /dev/null +++ b/modules/nixos/nix.nix @@ -0,0 +1,29 @@ +{ + flake.modules.nixos.nix = {...}: { + nix = { + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; + settings = { + auto-optimise-store = true; + experimental-features = ["nix-command" "flakes"]; + trusted-users = ["@wheel"]; + trusted-substituters = [ + "https://cache.hydra.lab.liljamo.com" + "https://hyprland.cachix.org" + ]; + trusted-public-keys = [ + "hydracache:gJygjf4gFURF0LZhKosqLyFW4PG/EMgJSaAbaCnsOEA=" + "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" + ]; + }; + }; + + programs.nh = { + enable = true; + flake = "$HOME/dev/nix-arta"; + }; + }; +} -- 2.44.1