depot/modules/nix-register-flakes/default.nix
2022-07-31 21:13:52 +02:00

20 lines
412 B
Nix

{ config, inputs, ... }:
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;
};
}