Skip to content

Commit

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

with lib;

let

cfg = config.services.xserver.windowManager.dwm;
Expand All @@ -14,8 +11,8 @@ in

options = {
services.xserver.windowManager.dwm = {
enable = mkEnableOption "dwm";
package = mkPackageOption pkgs "dwm" {
enable = lib.mkEnableOption "dwm";
package = lib.mkPackageOption pkgs "dwm" {
example = ''
pkgs.dwm.overrideAttrs (oldAttrs: rec {
patches = [
Expand All @@ -33,9 +30,9 @@ in

###### implementation

config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {

services.xserver.windowManager.session = singleton
services.xserver.windowManager.session = lib.singleton
{ name = "dwm";
start =
''
Expand Down

0 comments on commit 01cb6f9

Please sign in to comment.