🐛 fix nixpkgs now being unaccessible downtream

This commit is contained in:
Laureηt 2023-12-15 17:08:47 +01:00
parent 67f837bccf
commit 5198936f28
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI
3 changed files with 7 additions and 5 deletions

View file

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

View file

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

View file

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