Loading nixos/modules/services/x11/window-managers/dwm.nix +18 −13 Original line number Diff line number Diff line Loading @@ -6,15 +6,20 @@ let cfg = config.services.xserver.windowManager.dwm; in { in { ###### interface options = { services.xserver.windowManager.dwm = { enable = mkEnableOption "dwm"; extraSessionCommands = mkOption { default = ""; type = types.lines; description = '' Shell commands executed just before dwm is started. ''; }; package = mkPackageOption pkgs "dwm" { example = '' pkgs.dwm.overrideAttrs (oldAttrs: rec { Loading @@ -30,15 +35,15 @@ in }; }; ###### implementation config = mkIf cfg.enable { services.xserver.windowManager.session = singleton { name = "dwm"; start = '' services.xserver.windowManager.session = singleton { name = "dwm"; start = '' ${cfg.extraSessionCommands} export _JAVA_AWT_WM_NONREPARENTING=1 dwm & waitPID=$! Loading Loading
nixos/modules/services/x11/window-managers/dwm.nix +18 −13 Original line number Diff line number Diff line Loading @@ -6,15 +6,20 @@ let cfg = config.services.xserver.windowManager.dwm; in { in { ###### interface options = { services.xserver.windowManager.dwm = { enable = mkEnableOption "dwm"; extraSessionCommands = mkOption { default = ""; type = types.lines; description = '' Shell commands executed just before dwm is started. ''; }; package = mkPackageOption pkgs "dwm" { example = '' pkgs.dwm.overrideAttrs (oldAttrs: rec { Loading @@ -30,15 +35,15 @@ in }; }; ###### implementation config = mkIf cfg.enable { services.xserver.windowManager.session = singleton { name = "dwm"; start = '' services.xserver.windowManager.session = singleton { name = "dwm"; start = '' ${cfg.extraSessionCommands} export _JAVA_AWT_WM_NONREPARENTING=1 dwm & waitPID=$! Loading