labwc: do not manage file when in default value(#7240)
This commit is contained in:
parent
2fbd694fec
commit
6fa01d524b
1 changed files with 11 additions and 5 deletions
|
|
@ -236,9 +236,13 @@ in
|
|||
[ cfg.package ] ++ lib.optional cfg.xwayland.enable pkgs.xwayland
|
||||
);
|
||||
|
||||
xdg.configFile."labwc/rc.xml".text = function.generateXML "labwc_config" cfg.rc cfg.extraConfig;
|
||||
xdg.configFile."labwc/rc.xml" = lib.mkIf (cfg.rc != { }) {
|
||||
text = function.generateXML "labwc_config" cfg.rc cfg.extraConfig;
|
||||
};
|
||||
|
||||
xdg.configFile."labwc/menu.xml".text = function.generateXML "openbox_menu" cfg.menu "";
|
||||
xdg.configFile."labwc/menu.xml" = lib.mkIf (cfg.menu != [ ]) {
|
||||
text = function.generateXML "openbox_menu" cfg.menu "";
|
||||
};
|
||||
|
||||
xdg.configFile."labwc/autostart".source = pkgs.writeShellScript "autostart" (
|
||||
''
|
||||
|
|
@ -254,9 +258,11 @@ in
|
|||
'')
|
||||
);
|
||||
|
||||
xdg.configFile."labwc/environment".text = lib.concatStringsSep "\n" (
|
||||
cfg.environment ++ (lib.optionals (!cfg.xwayland.enable) [ "WLR_XWAYLAND=" ])
|
||||
);
|
||||
xdg.configFile."labwc/environment" = lib.mkIf (cfg.environment != [ ]) {
|
||||
text = lib.concatStringsSep "\n" (
|
||||
cfg.environment ++ (lib.optionals (!cfg.xwayland.enable) [ "WLR_XWAYLAND=" ])
|
||||
);
|
||||
};
|
||||
|
||||
systemd.user.targets.labwc-session = lib.mkIf cfg.systemd.enable {
|
||||
Unit = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue