nix-conf/modules/nixos/display-manager/default.nix

55 lines
1.1 KiB
Nix
Raw Normal View History

2024-04-10 17:55:25 +00:00
{
config,
lib,
2024-04-10 18:14:50 +00:00
pkgs,
2024-04-10 17:55:25 +00:00
...
}: {
options = {
display-manager.enable = lib.mkEnableOption "enable display-manager";
};
config = lib.mkIf config.display-manager.enable {
services = {
2024-07-28 07:50:46 +00:00
displayManager = {
sddm = {
enable = true;
wayland.enable = true;
};
};
2024-04-10 17:55:25 +00:00
xserver = {
enable = true;
displayManager = {
2024-04-14 13:25:49 +00:00
gdm.enable = false;
2024-04-10 17:55:25 +00:00
};
desktopManager = {
2024-04-14 13:25:49 +00:00
gnome.enable = false;
2024-04-10 17:55:25 +00:00
};
2024-04-10 17:59:07 +00:00
xkb = {
layout = "us";
variant = "";
};
2024-04-10 17:55:25 +00:00
};
2024-04-14 13:25:49 +00:00
desktopManager.plasma6.enable = true;
2024-04-10 17:55:25 +00:00
};
2024-04-10 18:14:50 +00:00
environment.systemPackages = with pkgs; [
dunst
grim
2024-04-11 07:55:06 +00:00
kdePackages.ksystemstats
2024-04-10 18:14:50 +00:00
libsForQt5.bismuth
libnotify
pamixer
plasma5Packages.bismuth
rofi-wayland
swww
(
waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ ["-Dexperimental=true"];
})
)
wl-clipboard
virtiofsd
];
2024-04-10 17:59:07 +00:00
xdg.portal.enable = true;
2024-04-10 17:55:25 +00:00
programs.xwayland.enable = true;
};
}