️ (neodymium) pin nixpkgs registry to system

This commit is contained in:
Laureηt 2023-09-17 16:01:59 +02:00
parent 68dbf045cb
commit b4d07e7b6c
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI
2 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -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) [