nix/option/Sway.nix

16 lines
309 B
Nix

{ lib, config, ... }:
let
purpose = config.module.purpose;
in
{
options.module.sway = {
enable = lib.mkEnableOption "the Sway WM." // {
default = with purpose; desktop || laptop;
};
extraConfig = lib.mkOption {
default = [ ];
type = with lib.types; listOf str;
};
};
}