mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
changed github email, removed home-manager and changed nixPath generation
This commit is contained in:
parent
fb0c186896
commit
f049f7fe37
6 changed files with 26 additions and 101 deletions
14
nix.nix
14
nix.nix
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue