refactor(hm-system-defaults): reorganize and prettify
This commit is contained in:
parent
c067650709
commit
d69bd43b50
1 changed files with 14 additions and 13 deletions
|
@ -9,20 +9,21 @@
|
|||
|
||||
sharedModules = [
|
||||
{
|
||||
home.sessionVariables = {
|
||||
home = {
|
||||
stateVersion = config.system.stateVersion;
|
||||
sessionVariables = {
|
||||
inherit (config.environment.sessionVariables) NIX_PATH;
|
||||
};
|
||||
xdg =
|
||||
{
|
||||
};
|
||||
xdg = {
|
||||
enable = true;
|
||||
configFile = {
|
||||
"nix/registry.json".text = config.environment.etc."nix/registry.json".text;
|
||||
"nixpkgs/config.nix".text = lib.generators.toPretty { } {
|
||||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
enable = true;
|
||||
};
|
||||
home.stateVersion = config.system.stateVersion;
|
||||
}
|
||||
(lib.mkIf config.services.xserver.enable {
|
||||
xsession.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue