mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-23 05:35:53 -04:00
Merge f3498691aa into 064bcad6f7
This commit is contained in:
commit
c0aada8ea8
1 changed files with 6 additions and 1 deletions
|
|
@ -12,6 +12,11 @@ self: {
|
||||||
${lib.optionalString cfg.systemd.enable systemdActivation}
|
${lib.optionalString cfg.systemd.enable systemdActivation}
|
||||||
${cfg.autostart_sh}
|
${cfg.autostart_sh}
|
||||||
'';
|
'';
|
||||||
|
validatedConfig = pkgs.runCommand "mango-config.conf" { } ''
|
||||||
|
cp ${pkgs.writeText "mango-config.conf" cfg.settings} "$out"
|
||||||
|
|
||||||
|
${cfg.package}/bin/mango -c "$out" -p || exit 1
|
||||||
|
'';
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
wayland.windowManager.mango = with lib; {
|
wayland.windowManager.mango = with lib; {
|
||||||
|
|
@ -99,7 +104,7 @@ in {
|
||||||
home.packages = [cfg.package];
|
home.packages = [cfg.package];
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
"mango/config.conf" = lib.mkIf (cfg.settings != "") {
|
"mango/config.conf" = lib.mkIf (cfg.settings != "") {
|
||||||
text = cfg.settings;
|
source = validatedConfig;
|
||||||
};
|
};
|
||||||
"mango/autostart.sh" = lib.mkIf (cfg.autostart_sh != "") {
|
"mango/autostart.sh" = lib.mkIf (cfg.autostart_sh != "") {
|
||||||
source = autostart_sh;
|
source = autostart_sh;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue