diff options
| author | Mel <einebeere@gmail.com> | 2024-10-22 23:44:02 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-10-22 23:44:02 +0200 |
| commit | 656780d794dd2066b6bfd909e65b78df7afca84f (patch) | |
| tree | ff9844f440b2e4d047119b0dcaf9aa444d8f7e69 /modules/nix.nix | |
| parent | bb0e4c7b5bbec7b8d8e3433a87683e9bb5ec307a (diff) | |
| download | minerals-656780d794dd2066b6bfd909e65b78df7afca84f.tar.zst minerals-656780d794dd2066b6bfd909e65b78df7afca84f.zip | |
Change nix path to point to compatibility scripts
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'modules/nix.nix')
| -rw-r--r-- | modules/nix.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/nix.nix b/modules/nix.nix new file mode 100644 index 0000000..b41d81a --- /dev/null +++ b/modules/nix.nix @@ -0,0 +1,24 @@ +{ me, lib, self, ... }: + +let + imNotBismuth = (me != "bismuth"); + + bismuthCacheSettings = { + substituters = [ "http://bismuth:5000" ]; + trusted-public-keys = [ "bismuth-1:XW9nsNsccipbmdfchyb3YIIWNT058iSpHLwlj1xgB7A=" ]; + }; + +in +{ + nix = { + # + nixPath = [ + "nixpkgs=${self}/compat" + "nixos-config=${self}/compat/nixos" + ]; + + settings = { + experimental-features = [ "flakes" "nix-command" ]; + } // lib.optionalAttrs imNotBismuth bismuthCacheSettings; # use bismuth cache + }; +} |
