mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: nix registry hack
This commit is contained in:
parent
2f469059a4
commit
7d72886ffe
3 changed files with 16 additions and 11 deletions
|
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue