[desktop] Refactor into multiple components

This commit is contained in:
2025-02-15 10:21:22 -08:00
parent 16fa4a641c
commit d6e031efd0
11 changed files with 139 additions and 79 deletions

23
roles/desktop/wayland.nix Normal file
View File

@@ -0,0 +1,23 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.roles.desktop;
in
{
config = mkIf (cfg.enable && cfg.wayland) {
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
programs.light.enable = true;
environment.systemPackages = with pkgs; [
grim
slurp
wl-clipboard
mako
];
};
}