modules: restructure modules directory
This commit is contained in:
parent
8a68337380
commit
19ecc15b59
6 changed files with 222 additions and 1 deletions
22
modules/devos/hm-system-defaults.nix
Normal file
22
modules/devos/hm-system-defaults.nix
Normal 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;
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
7
modules/devos/nix-path.nix
Normal file
7
modules/devos/nix-path.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ channel, inputs, ... }: {
|
||||
nix.nixPath = [
|
||||
"nixpkgs=${channel.input}"
|
||||
"nixos-config=${../../lib/compat/nixos}"
|
||||
"home-manager=${inputs.home}"
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue