depot/modules/nix-register-flakes/default.nix

21 lines
404 B
Nix
Raw Normal View History

2023-03-07 02:25:57 +02:00
{ depot, ... }:
2021-06-05 23:59:06 +03:00
2023-03-07 02:25:57 +02:00
with depot.inputs;
2021-06-05 23:59:06 +03:00
{
nix.nixPath = [
"repl=/etc/nixos/flake-channels/system/repl.nix"
"nixpkgs=/etc/nixos/flake-channels/nixpkgs"
];
nix.registry = {
2023-03-07 02:25:57 +02:00
system.flake = depot;
2021-06-05 23:59:06 +03:00
nixpkgs.flake = nixpkgs;
default.flake = nixpkgs;
};
environment.etc = {
2023-03-07 02:25:57 +02:00
"nixos/flake-channels/system".source = depot;
2021-06-05 23:59:06 +03:00
"nixos/flake-channels/nixpkgs".source = nixpkgs;
};
}