mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-03-30 01:37:25 -04:00
18 lines
451 B
Nix
18 lines
451 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;
|
|
};
|
|
programs.dconf.enable = true;
|
|
};
|
|
|
|
|
|
config.environment = lib.mkIf config.desktop.sway.enable {
|
|
sessionVariables = {
|
|
NIXOS_OZONE_WL = "1";
|
|
};
|
|
};
|
|
}
|