[desktop] Finish programs refactor

This commit is contained in:
2025-03-16 14:33:26 -07:00
parent c6d787f9f5
commit 1851743a21
2 changed files with 6 additions and 15 deletions

View File

@@ -2,12 +2,10 @@
with lib; with lib;
let
cfg = config.roles.desktop;
in
{ {
options.roles.desktop = { options.roles.desktop = {
enable = mkEnableOption "Enable the desktop role."; enable = mkEnableOption "Enable the desktop role.";
x11 = mkOption { type = types.bool; default = false; description = "Enable X11 support."; }; x11 = mkOption { type = types.bool; default = false; description = "Enable X11 support."; };
wayland = mkOption { type = types.bool; default = false; description = "Enable Wayland support."; }; wayland = mkOption { type = types.bool; default = false; description = "Enable Wayland support."; };
kde = mkOption { type = types.bool; default = false; description = "Enable KDE."; }; kde = mkOption { type = types.bool; default = false; description = "Enable KDE."; };
@@ -20,17 +18,7 @@ in
./wayland.nix ./wayland.nix
./gaming.nix ./gaming.nix
./kde.nix ./kde.nix
./programs.nix
./sddm.nix ./sddm.nix
]; ];
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
brightnessctl
emacs-nox
];
programs.dconf.enable = true;
services.gnome.gnome-keyring.enable = true;
programs.kdeconnect.enable = true;
};
} }

View File

@@ -2,8 +2,11 @@
with lib; with lib;
let
cfg = config.roles.desktop;
in
{ {
config = { config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
brightnessctl brightnessctl
emacs-nox emacs-nox