777 current 2024-06-26 16:37:29 24.11.20240626.e10b0f9 6.9.6-zen1 *
This commit is contained in:
parent
08e36e48f2
commit
2c2fef30d9
3 changed files with 29 additions and 7 deletions
22
modules/home/wms/sway/default.nix
Normal file
22
modules/home/wms/sway/default.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.custom; let
|
||||
cfg = config.wms.sway;
|
||||
in {
|
||||
options.wms.sway = with types; {
|
||||
enable = mkBoolOpt false "Enable Sway";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
xwayland = true;
|
||||
extraOptions = ["--unsupported-gpu"];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue