changed github email, removed home-manager and changed nixPath generation

This commit is contained in:
ISnortPennies 2023-02-04 22:44:01 -05:00
parent fb0c186896
commit f049f7fe37
6 changed files with 26 additions and 101 deletions

14
nix.nix
View file

@ -1,25 +1,19 @@
{
inputs,
lib,
config,
...
}: {
environment.etc = {
"nix/flake-channels/system".source = inputs.self;
"nix/flake-channels/nixpkgs".source = inputs.nixpkgs.outPath;
"nix/flake-channels/home-manager".source = inputs.home-manager.outPath;
};
nix = {
nixPath = [
"nixpkgs=/etc/nix/flake-channels/nixpkgs"
"home-manager=/etc/nix/flake-channels/home-manager"
];
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
#automatically get registry from input flakes
registry =
{
system.flake = inputs.self;
default.flake = inputs.nixpkgs;
}
// lib.attrsets.mapAttrs (
lib.attrsets.mapAttrs (
_: source: {
flake = source;
}