diff options
| author | seth <[email protected]> | 2024-06-30 09:56:30 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-06-30 10:23:04 -0400 |
| commit | 088facf700946cb8f2d96c6089185bdc2a67180a (patch) | |
| tree | c5b4e4cffbb3ee4ad2498c2251892bd457e9d3c7 /modules/shared/base/nix.nix | |
| parent | 5d3045a0769af3a94fba7b5cf646e8498aaef595 (diff) | |
alejandra -> nixfmt-rfc-style
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; }; |
