home: wm: make 'windowManager' extensible

This commit is contained in:
Bruno BELANYI 2026-04-04 02:50:56 +01:00
parent 4086e94d3c
commit 5381aa79de
2 changed files with 7 additions and 1 deletions

View file

@ -20,7 +20,7 @@ in
options.my.home.wm = with lib; { options.my.home.wm = with lib; {
windowManager = mkOption { windowManager = mkOption {
type = with types; nullOr (enum [ "i3" ]); type = with types; nullOr (enum [ ]);
default = null; default = null;
example = "i3"; example = "i3";
description = "Which window manager to use for home session"; description = "Which window manager to use for home session";

View file

@ -56,6 +56,12 @@ let
''; '';
in in
{ {
options.my.home.wm = with lib; {
windowManager = mkOption {
type = with types; nullOr (enum [ "i3" ]);
};
};
config = lib.mkIf isEnabled { config = lib.mkIf isEnabled {
home.packages = with pkgs; [ home.packages = with pkgs; [
ambroisie.dragger # drag-and-drop from the CLI ambroisie.dragger # drag-and-drop from the CLI