modules: restructure modules directory

This commit is contained in:
Infinidoge 2021-11-17 23:32:06 -05:00
parent 8a68337380
commit 19ecc15b59
6 changed files with 222 additions and 1 deletions

View file

@ -0,0 +1,22 @@
{ config, lib, ... }: {
home-manager = {
extraSpecialArgs = {
main = config;
};
sharedModules = [
{
home.sessionVariables = {
inherit (config.environment.sessionVariables) NIX_PATH;
};
xdg = {
configFile."nix/registry.json".text = config.environment.etc."nix/registry.json".text;
enable = true;
};
}
(lib.mkIf config.services.xserver.enable {
xsession.enable = true;
})
];
};
}

View file

@ -0,0 +1,7 @@
{ channel, inputs, ... }: {
nix.nixPath = [
"nixpkgs=${channel.input}"
"nixos-config=${../../lib/compat/nixos}"
"home-manager=${inputs.home}"
];
}