1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00
nixos/modules/plasma.nix

34 lines
682 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.xserver = {
enable = true;
displayManager = {
sddm.enable = true;
#defaultSession = "plasmawayland";
};
desktopManager.plasma5.enable = true;
};
services.gnome.gnome-keyring.enable = true;
security.pam.services.sddm = {
enableGnomeKeyring = true;
gnupg.enable = true;
};
environment.systemPackages = with pkgs; [
firefox
thunderbird
];
};
}