modules: move devos/* into global

This commit is contained in:
Infinidoge 2023-07-29 16:31:33 -04:00
parent 80d2277a16
commit 7c9c18e578
7 changed files with 1 additions and 10 deletions

View file

@ -0,0 +1,39 @@
{ config, lib, pkgs, ... }: {
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
extraSpecialArgs = {
main = config;
};
sharedModules = [
{
home = {
stateVersion = config.system.stateVersion;
sessionVariables = {
inherit (config.environment.sessionVariables) NIX_PATH;
};
};
xdg = {
enable = true;
configFile = {
"nix/registry.json".text = config.environment.etc."nix/registry.json".text;
"nixpkgs/config.nix".text = lib.generators.toPretty { } {
allowUnfree = true;
};
};
};
}
(lib.mkIf config.services.xserver.enable {
xsession.enable = true;
})
(lib.mkIf config.info.graphical {
xdg.systemDirs.data = [
"${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}"
"${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}"
];
})
];
};
}