summaryrefslogtreecommitdiff
path: root/modules/basic-tools/nix.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/basic-tools/nix.nix')
-rw-r--r--modules/basic-tools/nix.nix14
1 files changed, 4 insertions, 10 deletions
diff --git a/modules/basic-tools/nix.nix b/modules/basic-tools/nix.nix
index 980ab76..a67c6a8 100644
--- a/modules/basic-tools/nix.nix
+++ b/modules/basic-tools/nix.nix
@@ -1,7 +1,5 @@
{
- lib,
pkgs,
- inputs,
...
}:
{
@@ -16,14 +14,10 @@
# nix output-monitor
environment.systemPackages = [ pkgs.nix-output-monitor ];
- # override default nix shell nixpkgs# behaviour to use current flake lock
- nix.registry =
- let
- flakes = lib.filterAttrs (_name: value: value ? outputs) inputs.self.inputs;
- in
- builtins.mapAttrs (_name: v: { flake = v; }) flakes;
-
- nix.nixPath = lib.mapAttrsToList (name: value: "${name}=${value.outPath}") inputs.self.inputs;
+ nixpkgs.flake = {
+ setFlakeRegistry = true;
+ setNixPath = true;
+ };
nixpkgs.config.allowUnfree = true;
}