nixos/dwm-status: clean up whitespace and old comments
This commit is contained in:
parent
07abe18272
commit
daf30d2fcd
@ -25,12 +25,8 @@ in
|
|||||||
] "Use services.dwm-status.settings instead.")
|
] "Use services.dwm-status.settings instead.")
|
||||||
];
|
];
|
||||||
|
|
||||||
###### interface
|
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
|
||||||
services.dwm-status = {
|
services.dwm-status = {
|
||||||
|
|
||||||
enable = lib.mkEnableOption "dwm-status user service";
|
enable = lib.mkEnableOption "dwm-status user service";
|
||||||
|
|
||||||
package = lib.mkPackageOption pkgs "dwm-status" {
|
package = lib.mkPackageOption pkgs "dwm-status" {
|
||||||
@ -74,25 +70,17 @@ in
|
|||||||
for available options.
|
for available options.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
###### implementation
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
services.upower.enable = lib.mkIf (lib.elem "battery" cfg.settings.order) true;
|
services.upower.enable = lib.mkIf (lib.elem "battery" cfg.settings.order) true;
|
||||||
|
|
||||||
systemd.user.services.dwm-status = {
|
systemd.user.services.dwm-status = {
|
||||||
description = "Highly performant and configurable DWM status service";
|
description = "Highly performant and configurable DWM status service";
|
||||||
wantedBy = [ "graphical-session.target" ];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
partOf = [ "graphical-session.target" ];
|
partOf = [ "graphical-session.target" ];
|
||||||
|
|
||||||
serviceConfig.ExecStart = "${cfg.package}/bin/dwm-status ${configFile} --quiet";
|
serviceConfig.ExecStart = "${cfg.package}/bin/dwm-status ${configFile} --quiet";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user