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:
parent
18b3a6c64b
commit
99b5ace0a3
9 changed files with 57 additions and 63 deletions
10
modules/desktops/default.nix
Normal file
10
modules/desktops/default.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ lib, config, ...}: {
|
||||
imports = [
|
||||
# Wayland desktops here
|
||||
./wayland/sway.nix
|
||||
|
||||
# X11 desktops here
|
||||
./x11/i3.nix
|
||||
];
|
||||
}
|
||||
|
||||
17
modules/desktops/wayland/sway.nix
Normal file
17
modules/desktops/wayland/sway.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue