mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
Signed-off-by: Stefan Ellmauthaler <stefan.ellmauthaler@tu-dresden.de>
42 lines
834 B
Nix
42 lines
834 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; {
|
|
options.elss.graphical.plasma.enable = mkEnableOption "Use plasma";
|
|
config = let
|
|
cfg = config.elss.graphical.plasma;
|
|
in
|
|
mkIf cfg.enable {
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
pulse.enable = true;
|
|
};
|
|
|
|
services = {
|
|
xserver = {
|
|
enable = true;
|
|
desktopManager.plasma5.enable = true;
|
|
};
|
|
displayManager = {
|
|
sddm.wayland.enable = true;
|
|
defaultSession = "plasmawayland";
|
|
};
|
|
};
|
|
|
|
services.gnome.gnome-keyring.enable = true;
|
|
security.pam.services.sddm = {
|
|
enableGnomeKeyring = true;
|
|
gnupg.enable = true;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
firefox
|
|
thunderbird
|
|
];
|
|
};
|
|
}
|