From 280e1bbe5e733128a451260685cc8ecd10a042a3 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 17 Oct 2026 21:53:43 +1300 Subject: feat: Dendritic pattern This re-write was done with the help of claude, and still needs a decent amount of changes before it properly follows the dendritic pattern --- modules/nix.nix | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 modules/nix.nix (limited to 'modules/nix.nix') diff --git a/modules/nix.nix b/modules/nix.nix deleted file mode 100644 index 64fc4a3..0000000 --- a/modules/nix.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ inputs, config, lib, ... }: -{ - options.teh-nix.nix = with lib; { - enable = mkEnableOption "Use the TehNix nix settings"; - }; - - config = lib.mkIf config.teh-nix.nix.enable { - nix.nixPath = [ "/etc/nix/path" ]; - nix.registry.nixpkgs.flake = inputs.nixpkgs; - environment.etc."nix/path/nixpkgs".source = inputs.nixpkgs; - - nix = { - settings = { - experimental-features = [ "nix-command" "flakes" ]; - auto-optimise-store = true; - - trusted-users = [ "boss" ]; - - substituters = [ - "https://cache.nixos.org" - ]; - - # trusted-public-keys = [ - # "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" - # ]; - }; - optimise.automatic = true; - }; - - # nh's cleaner replaces nix.gc (the nh module asserts they aren't both on) - programs.nh = { - enable = true; - clean = { - enable = true; - dates = "weekly"; - # --no-direnv keeps nix-direnv's gcroots so dev shells survive - extraArgs = "--keep-since 7d --keep 5 --no-direnv"; - }; - }; - }; -} -- cgit v1.3.1