From 0c8d583aca537be01ac0765c0b7e5c09a431b203 Mon Sep 17 00:00:00 2001 From: Grisha Shipunov Date: Tue, 18 Mar 2025 21:34:07 +0100 Subject: update toaster to unstable --- modules/basic-tools/nix.nix | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'modules/basic-tools/nix.nix') 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; } -- cgit v1.3.1