From 5381aa79deec555ca40728b753ae294e98d44aea Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 4 Apr 2026 02:50:56 +0100 Subject: [PATCH] home: wm: make 'windowManager' extensible --- modules/home/wm/default.nix | 2 +- modules/home/wm/i3/default.nix | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/home/wm/default.nix b/modules/home/wm/default.nix index 91c032b..58855f4 100644 --- a/modules/home/wm/default.nix +++ b/modules/home/wm/default.nix @@ -20,7 +20,7 @@ in options.my.home.wm = with lib; { windowManager = mkOption { - type = with types; nullOr (enum [ "i3" ]); + type = with types; nullOr (enum [ ]); default = null; example = "i3"; description = "Which window manager to use for home session"; diff --git a/modules/home/wm/i3/default.nix b/modules/home/wm/i3/default.nix index 05b202c..1943071 100644 --- a/modules/home/wm/i3/default.nix +++ b/modules/home/wm/i3/default.nix @@ -56,6 +56,12 @@ let ''; in { + options.my.home.wm = with lib; { + windowManager = mkOption { + type = with types; nullOr (enum [ "i3" ]); + }; + }; + config = lib.mkIf isEnabled { home.packages = with pkgs; [ ambroisie.dragger # drag-and-drop from the CLI