[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

15
roles/desktop/sddm.nix Normal file
View File

@@ -0,0 +1,15 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.roles.desktop;
in
{
config = mkIf (cfg.enable && cfg.sddm) {
services.displayManager.sddm = {
enable = true;
wayland.enable = (!cfg.x11 && cfg.wayland);
};
};
}