global/hm-system-defaults: make some profiles global
This commit is contained in:
parent
f0017d381e
commit
b24034aa53
2 changed files with 17 additions and 14 deletions
|
@ -8,7 +8,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
sharedModules = [
|
sharedModules = [
|
||||||
{
|
({ profiles, ... }: {
|
||||||
|
imports = with profiles; [
|
||||||
|
htop
|
||||||
|
];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
stateVersion = config.system.stateVersion;
|
stateVersion = config.system.stateVersion;
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
|
@ -24,16 +28,20 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
(lib.mkIf config.services.xserver.enable {
|
(lib.mkIf config.services.xserver.enable {
|
||||||
xsession.enable = true;
|
xsession.enable = true;
|
||||||
})
|
})
|
||||||
(lib.mkIf config.info.graphical {
|
(lib.mkIf config.info.graphical ({ profiles, ... }: {
|
||||||
|
imports = with profiles; [
|
||||||
|
kitty
|
||||||
|
];
|
||||||
|
|
||||||
xdg.systemDirs.data = [
|
xdg.systemDirs.data = [
|
||||||
"${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}"
|
"${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}"
|
||||||
"${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}"
|
"${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}"
|
||||||
];
|
];
|
||||||
})
|
}))
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,16 +10,11 @@ in
|
||||||
|
|
||||||
home = { config, main, profiles, ... }: {
|
home = { config, main, profiles, ... }: {
|
||||||
imports = flatten [
|
imports = flatten [
|
||||||
(with profiles; [
|
(ifGraphical' (with profiles; [
|
||||||
htop
|
|
||||||
|
|
||||||
(ifGraphical' [
|
|
||||||
kitty
|
|
||||||
rofi
|
rofi
|
||||||
themeing
|
themeing
|
||||||
flameshot
|
flameshot
|
||||||
])
|
]))
|
||||||
])
|
|
||||||
|
|
||||||
./config
|
./config
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue