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

21 lines
404 B
Nix
Raw Normal View History

2022-10-17 15:54:48 +03:00
{ inputs, ... }:
2021-06-05 23:59:06 +03:00
with inputs;
{
nix.nixPath = [
"repl=/etc/nixos/flake-channels/system/repl.nix"
"nixpkgs=/etc/nixos/flake-channels/nixpkgs"
];
nix.registry = {
system.flake = self;
nixpkgs.flake = nixpkgs;
default.flake = nixpkgs;
};
environment.etc = {
"nixos/flake-channels/system".source = inputs.self;
"nixos/flake-channels/nixpkgs".source = nixpkgs;
};
}