Skip to content

Commit

Permalink
nixos/services.xserver.windowManager.cwm: remove with lib;
Browse files Browse the repository at this point in the history
  • Loading branch information
Stunkymonkey committed Dec 30, 2024
1 parent 7ed890b commit 9a87ab9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions nixos/modules/services/x11/window-managers/cwm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@
pkgs,
...
}:

with lib;

let
cfg = config.services.xserver.windowManager.cwm;
in
{
options = {
services.xserver.windowManager.cwm.enable = mkEnableOption "cwm";
services.xserver.windowManager.cwm.enable = lib.mkEnableOption "cwm";
};
config = mkIf cfg.enable {
services.xserver.windowManager.session = singleton {
config = lib.mkIf cfg.enable {
services.xserver.windowManager.session = lib.singleton {
name = "cwm";
start = ''
cwm &
Expand Down

0 comments on commit 9a87ab9

Please sign in to comment.