mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-31 02:24:18 -05:00
Sway config
This commit is contained in:
parent
9ab1050965
commit
dbe515a0b1
4 changed files with 220 additions and 5 deletions
17
modules/sway/default.nix
Normal file
17
modules/sway/default.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ inputs, pkgs, lib, config, ...}: {
|
||||
options.sway.enable = lib.mkEnableOption "enables sway";
|
||||
|
||||
config = {
|
||||
programs.sway = lib.mkIf config.sway.enable {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
config.environment = lib.mkIf config.sway.enable {
|
||||
sessionVariables = {
|
||||
NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue