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

43 lines
975 B
Nix
Raw Normal View History

2022-02-05 21:42:36 +02:00
{ config, inputs, lib, pkgs, ... }:
with inputs;
{
nix.nixPath = [
"repl=/etc/nix/flake-channels/system/repl.nix"
"nixpkgs=/etc/nix/flake-channels/nixpkgs"
"home-manager=/etc/nix/flake-channels/home-manager"
];
nix.registry = {
system.flake = self;
nixpkgs.to = {
owner = "NixOS";
repo = "nixpkgs";
rev = nixpkgs.rev;
type = "github";
};
2022-02-05 21:42:36 +02:00
default.flake = nixpkgs;
home-manager.flake = home-manager;
templates.to = {
owner = "max";
repo = "flake-templates";
ref = "master";
host = "git.privatevoid.net";
type = "gitlab";
};
config.to = {
owner = "max";
repo = "config";
ref = "master";
host = "git.privatevoid.net";
type = "gitlab";
};
2022-02-05 21:42:36 +02:00
};
environment.etc = {
"nix/flake-channels/system".source = inputs.self;
"nix/flake-channels/nixpkgs".source = nixpkgs;
"nix/flake-channels/home-manager".source = home-manager;
};
}