fix: use lib.mkMerge instead of //
// doesn't deep merge, so marleyos.openssh.enable didn't stay set to true after the desktop profile was applied
This commit is contained in:
parent
2b98d371f1
commit
79d253f2d7
2 changed files with 9 additions and 7 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
inherit (marleylib.module) enabled;
|
||||
in {
|
||||
marleyos =
|
||||
marleyos = lib.mkMerge [
|
||||
# Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
{
|
||||
programs = {
|
||||
|
@ -18,9 +18,10 @@ in {
|
|||
#
|
||||
#
|
||||
# Graphical Desktop - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
// (lib.optionalAttrs cfg.desktop {})
|
||||
(lib.optionalAttrs cfg.desktop {})
|
||||
#
|
||||
#
|
||||
# Server - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
// (lib.optionalAttrs cfg.server {});
|
||||
(lib.optionalAttrs cfg.server {})
|
||||
];
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
inherit (marleylib.module) enabled;
|
||||
in {
|
||||
marleyos =
|
||||
marleyos = lib.mkMerge [
|
||||
# Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
{
|
||||
programs = {
|
||||
|
@ -24,7 +24,7 @@ in {
|
|||
#
|
||||
#
|
||||
# Graphical Desktop - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
// (lib.optionalAttrs cfg.desktop {
|
||||
(lib.optionalAttrs cfg.desktop {
|
||||
mounts.babeshare = enabled;
|
||||
|
||||
shell = {
|
||||
|
@ -40,9 +40,10 @@ in {
|
|||
#
|
||||
#
|
||||
# Server - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
// (lib.optionalAttrs cfg.server {
|
||||
(lib.optionalAttrs cfg.server {
|
||||
services = {
|
||||
prometheus = enabled;
|
||||
};
|
||||
});
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue