aboutsummaryrefslogtreecommitdiff
path: root/home/wm/default.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-08 08:30:17 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-08 08:30:17 -0700
commit2aa3e62136109c5c4762e951525d68aff3e1ac5a (patch)
tree0f508cad82717ac70c7da5fd402c9555ce9166d1 /home/wm/default.nix
parenthome: fix for yt-dlp configuration (diff)
downloadinfra-2aa3e62136109c5c4762e951525d68aff3e1ac5a.tar.gz
home: add more configurations for home-manager
Diffstat (limited to 'home/wm/default.nix')
-rw-r--r--home/wm/default.nix19
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" ]; };
+ };
+}