diff options
| author | Franck Cuny <franck@fcuny.net> | 2022-04-08 08:30:17 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2022-04-08 08:30:17 -0700 |
| commit | 2aa3e62136109c5c4762e951525d68aff3e1ac5a (patch) | |
| tree | 0f508cad82717ac70c7da5fd402c9555ce9166d1 /home/wm/default.nix | |
| parent | home: fix for yt-dlp configuration (diff) | |
| download | infra-2aa3e62136109c5c4762e951525d68aff3e1ac5a.tar.gz | |
home: add more configurations for home-manager
Diffstat (limited to 'home/wm/default.nix')
| -rw-r--r-- | home/wm/default.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/home/wm/default.nix b/home/wm/default.nix new file mode 100644 index 0000000..e862696 --- /dev/null +++ b/home/wm/default.nix @@ -0,0 +1,19 @@ +{ config, lib, pkgs, ... }: +let + mkRelatedOption = description: relatedWMs: + let isActivatedWm = wm: config.my.home.wm.windowManager == wm; + in (lib.mkEnableOption description) // { + default = builtins.any isActivatedWm relatedWMs; + }; +in { + imports = [ ./sway ./waybar ./mako ./swaylock ./wofi ./gammastep ./theme ]; + options.my.home.wm = with lib; { + windowManager = mkOption { + type = with types; nullOr (enum [ "sway" ]); + default = null; + example = "sway"; + description = "Which window manager to use for home session"; + }; + waybar = { enable = mkRelatedOption "waybar configuration" [ "sway" ]; }; + }; +} |
