mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-03-29 09:17:24 -04:00
17 lines
413 B
Nix
17 lines
413 B
Nix
{ inputs, pkgs, lib, config, ...}: {
|
|
options.desktop.sway.enable = lib.mkEnableOption "enables sway";
|
|
|
|
config = {
|
|
programs.sway = lib.mkIf config.desktop.sway.enable {
|
|
enable = true;
|
|
xwayland.enable = true;
|
|
};
|
|
};
|
|
|
|
|
|
config.environment = lib.mkIf config.desktop.sway.enable {
|
|
sessionVariables = {
|
|
NIXOS_OZONE_WL = "1";
|
|
};
|
|
};
|
|
}
|