From 5198936f284dd4d196285b87e4ba6d187a8e3362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Fri, 15 Dec 2023 17:08:47 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20`nixpkgs`=20now=20being=20?= =?UTF-8?q?unaccessible=20downtream?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/default.nix | 4 +++- hosts/hydrogen/system/nix/default.nix | 4 ++-- hosts/neodymium/system/nix/default.nix | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/hosts/default.nix b/hosts/default.nix index 12965bc..d493d9a 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -12,7 +12,9 @@ in { # neodymium laptop neodymium = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; - specialArgs = inputs; + specialArgs = { + inherit inputs; + }; modules = [ ./neodymium inputs.home-manager.nixosModules.home-manager diff --git a/hosts/hydrogen/system/nix/default.nix b/hosts/hydrogen/system/nix/default.nix index d5ac7be..35914c0 100644 --- a/hosts/hydrogen/system/nix/default.nix +++ b/hosts/hydrogen/system/nix/default.nix @@ -1,7 +1,7 @@ { lib, pkgs, - nixpkgs, + inputs, ... }: { # optimizations @@ -18,7 +18,7 @@ nix.settings.experimental-features = ["nix-command" "flakes"]; # pin nixpkgs registry - nix.registry.nixpkgs.flake = nixpkgs; + nix.registry.nixpkgs.flake = inputs.nixpkgs; # print diff between two generations system.activationScripts.nvd-report-changes = '' diff --git a/hosts/neodymium/system/nix/default.nix b/hosts/neodymium/system/nix/default.nix index 066d116..266b91e 100644 --- a/hosts/neodymium/system/nix/default.nix +++ b/hosts/neodymium/system/nix/default.nix @@ -1,7 +1,7 @@ { lib, pkgs, - nixpkgs, + inputs, ... }: { # restrict nix command to sudoers @@ -25,7 +25,7 @@ }; # pin nixpkgs registry - nix.registry.nixpkgs.flake = nixpkgs; + nix.registry.nixpkgs.flake = inputs.nixpkgs; # list of allowed unfree packages nixpkgs.config.allowUnfreePredicate = pkg: