diff options
| author | seth <[email protected]> | 2023-10-01 10:41:09 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-10-01 10:49:46 -0400 |
| commit | a8630322f77dbb7be4810099a42352b9278996a1 (patch) | |
| tree | b8df66a7e5b9d8c31b27a4a9b357ff7e4b9d418f /modules/shared/base/nix.nix | |
| parent | 30f55e656d344e017f66ecbae8eb27cf13ba53bb (diff) | |
treewide!: flatten to parts/ layout
Diffstat (limited to 'modules/shared/base/nix.nix')
| -rw-r--r-- | modules/shared/base/nix.nix | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/modules/shared/base/nix.nix b/modules/shared/base/nix.nix deleted file mode 100644 index 2c95933..0000000 --- a/modules/shared/base/nix.nix +++ /dev/null @@ -1,42 +0,0 @@ -{ - config, - inputs, - lib, - pkgs, - ... -}: let - cfg = config.base.nix-settings; - inherit (lib) mkDefault mkEnableOption mkIf; - inherit (pkgs.stdenv) isLinux; -in { - options.base.nix-settings.enable = mkEnableOption "base nix settings"; - - config = mkIf cfg.enable { - nix = { - registry = - { - n.flake = mkDefault inputs.nixpkgs; - } - // (builtins.mapAttrs (_: flake: {inherit flake;}) - (inputs.nixpkgs.lib.filterAttrs (n: _: n != "nixpkgs") inputs)); - - settings = { - auto-optimise-store = isLinux; - experimental-features = ["nix-command" "flakes" "auto-allocate-uids" "repl-flake"]; - - trusted-substituters = ["https://cache.garnix.io"]; - trusted-public-keys = ["cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="]; - }; - - gc = { - automatic = mkDefault true; - options = mkDefault "--delete-older-than 7d"; - }; - }; - - nixpkgs = { - overlays = with inputs; [nur.overlay getchoo.overlays.default self.overlays.default]; - config.allowUnfree = true; - }; - }; -} |
