1
0
Fork 0
nix-config/modules/nixos/desktop/plasma/default.nix
Philipp dc99f3d24d
add spectacle config, add spotify, fix cinny video playback with gstreamer
refactor some stuff to look nicer and have more structure too
2025-04-10 19:19:37 +02:00

54 lines
1.1 KiB
Nix

{
config,
lib,
pkgs,
namespace,
...
}:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.desktop.plasma;
excludePackages = with pkgs.kdePackages; [
elisa
krdp
];
in
{
options.${namespace}.desktop.plasma = with types; {
enable = mkBoolOpt false "Whether or not to use Plasma as the desktop environment.";
extraExcludePackages = mkOpt (listOf package) [ ] "Extra packages to exclude";
};
config = mkIf cfg.enable {
services.desktopManager.plasma6.enable = true;
services.displayManager = {
sddm = {
enable = true;
wayland.enable = true;
settings = {
Autologin = {
Session = "plasma.desktop";
User = "philipp";
};
Theme = {
EnableAvatars = true;
};
};
};
};
environment.plasma6.excludePackages = [ ] ++ excludePackages ++ cfg.extraExcludePackages;
networking.networkmanager.enable = true;
environment.systemPackages = with pkgs; [
pinentry-qt
kdiskmark
networkmanager
kdePackages.networkmanager-qt
];
};
}