From b4d07e7b6cdd3d359cd9983f9d29fd01a0e6108a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Sun, 17 Sep 2023 16:01:59 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20(neodymium)=20pin=20nixpkg?= =?UTF-8?q?s=20registry=20to=20system?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flake.nix | 4 ++-- hosts/neodymium/system/nix/default.nix | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index ef285bb..fcbb5bb 100644 --- a/flake.nix +++ b/flake.nix @@ -43,7 +43,7 @@ }; outputs = { nixpkgs, flake-utils, lanzaboote, agenix, home-manager - , nixos-hardware, ... }@attrs: + , nixos-hardware, ... }@inputs: (flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; @@ -62,7 +62,7 @@ # neodymium laptop nixosConfigurations.neodymium = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; - specialArgs = attrs; + specialArgs = inputs; modules = [ ./hosts/neodymium home-manager.nixosModules.home-manager diff --git a/hosts/neodymium/system/nix/default.nix b/hosts/neodymium/system/nix/default.nix index ca85fc7..451c964 100644 --- a/hosts/neodymium/system/nix/default.nix +++ b/hosts/neodymium/system/nix/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: { +{ lib, pkgs, nixpkgs, ... }: { # restrict nix command to sudoers nix.settings.allowed-users = [ "@wheel" ]; @@ -25,6 +25,9 @@ ]; }; + # pin nixpkgs registry + nix.registry.nixpkgs.flake = nixpkgs; + # list of allowed unfree packages nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [