A modules/nixos/nix.nix => modules/nixos/nix.nix +29 -0
@@ 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";
+ };
+ };
+}