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 = [
|
sharedModules = [
|
||||||
{
|
{
|
||||||
home.sessionVariables = {
|
home = {
|
||||||
inherit (config.environment.sessionVariables) NIX_PATH;
|
stateVersion = config.system.stateVersion;
|
||||||
};
|
sessionVariables = {
|
||||||
xdg =
|
inherit (config.environment.sessionVariables) NIX_PATH;
|
||||||
{
|
|
||||||
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;
|
};
|
||||||
|
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 {
|
(lib.mkIf config.services.xserver.enable {
|
||||||
xsession.enable = true;
|
xsession.enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue