nix: nix registry hack

This commit is contained in:
Primrose 2024-06-23 23:49:46 +02:00
parent 2f469059a4
commit 7d72886ffe
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
3 changed files with 16 additions and 11 deletions

View file

@ -5,6 +5,10 @@
...
}:
let
nixpkgsRegistry = {
# https://yusef.napora.org/blog/pinning-nixpkgs-flake/
nix.registry.nixpkgs.flake = inputs.nixpkgs;
};
mkNixOS =
name: sys: hmOpts:
@ -32,6 +36,7 @@ let
users.leana.imports = [
"${self}/nix/home/_"
"${self}/nix/home/${name}"
nixpkgsRegistry
hmOpts
];
};
@ -66,6 +71,7 @@ let
users.leana.imports = [
"${self}/nix/home/_"
"${self}/nix/home/${name}"
nixpkgsRegistry
hmOptns
];
};
@ -90,6 +96,7 @@ let
modules = [
"${self}/nix/home/_"
"${self}/nix/home/${name}"
nixpkgsRegistry
hmOpts
];
}