home: wm: make 'windowManager' extensible
This commit is contained in:
parent
4086e94d3c
commit
5381aa79de
2 changed files with 7 additions and 1 deletions
|
|
@ -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";
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue