Rename some scopes, set most defaults to false and require hosts to want them instead of needing to opt out of them

This commit is contained in:
TheWanderingCrow 2024-10-05 11:26:59 -04:00
parent 18b3a6c64b
commit 99b5ace0a3
9 changed files with 57 additions and 63 deletions

View file

@ -0,0 +1,10 @@
{ lib, config, ...}: {
imports = [
# Wayland desktops here
./wayland/sway.nix
# X11 desktops here
./x11/i3.nix
];
}

View file

@ -0,0 +1,17 @@
{ inputs, pkgs, lib, config, ...}: {
options.desktop.sway.enable = lib.mkEnableOption "enables sway";
config = {
programs.sway = lib.mkIf config.sway.enable {
enable = true;
xwayland.enable = true;
};
};
config.environment = lib.mkIf config.desktop.sway.enable {
sessionVariables = {
NIXOS_OZONE_WL = "1";
};
};
}