diff options
Diffstat (limited to 'modules/shared/base/nix.nix')
| -rw-r--r-- | modules/shared/base/nix.nix | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/modules/shared/base/nix.nix b/modules/shared/base/nix.nix index 26f16bc..9002455 100644 --- a/modules/shared/base/nix.nix +++ b/modules/shared/base/nix.nix @@ -3,22 +3,31 @@ lib, pkgs, ... -}: let +}: +let cfg = config.base.nixSettings; enable = config.base.enable && cfg.enable; -in { +in +{ options.base.nixSettings = { - enable = lib.mkEnableOption "nix settings" // {default = true;}; + enable = lib.mkEnableOption "nix settings" // { + default = true; + }; }; config = lib.mkIf enable { nix = { settings = { auto-optimise-store = pkgs.stdenv.isLinux; - experimental-features = ["nix-command" "flakes" "auto-allocate-uids" "repl-flake"]; + experimental-features = [ + "nix-command" + "flakes" + "auto-allocate-uids" + "repl-flake" + ]; - trusted-substituters = ["https://getchoo.cachix.org"]; - trusted-public-keys = ["getchoo.cachix.org-1:ftdbAUJVNaFonM0obRGgR5+nUmdLMM+AOvDOSx0z5tE="]; + trusted-substituters = [ "https://getchoo.cachix.org" ]; + trusted-public-keys = [ "getchoo.cachix.org-1:ftdbAUJVNaFonM0obRGgR5+nUmdLMM+AOvDOSx0z5tE=" ]; nix-path = config.nix.nixPath; }; |
