about summary refs log tree commit diff
path: root/profiles/wm/default.nix
blob: 7b1fe398a3dc6ba1eace5974d82e635d630041bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, lib, ... }:
let cfg = config.my.profiles.wm;
in {
  options.my.profiles.wm = with lib; {
    windowManager = mkOption {
      type = with types; nullOr (enum [ "sway" ]);
      default = null;
      example = "sway";
      description = "Which window manager to use";
    };
  };
  config = lib.mkMerge [
    (lib.mkIf (cfg.windowManager == "sway") {
      # Enable sway
      my.home.wm.windowManager = "sway";
    })
  ];
}