mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-09 23:49:43 +00:00
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
options = {
|
|
display-manager.enable = lib.mkEnableOption "enable display-manager";
|
|
};
|
|
config = lib.mkIf config.display-manager.enable {
|
|
services = {
|
|
xserver = {
|
|
enable = true;
|
|
displayManager = {
|
|
sddm = {
|
|
enable = true;
|
|
wayland = {
|
|
enable = true;
|
|
#compositor = "kwin";
|
|
};
|
|
};
|
|
gdm.enable = false;
|
|
};
|
|
desktopManager = {
|
|
gnome.enable = false;
|
|
};
|
|
xkb = {
|
|
layout = "us";
|
|
variant = "";
|
|
};
|
|
};
|
|
desktopManager.plasma6.enable = true;
|
|
};
|
|
environment.systemPackages = with pkgs; [
|
|
dunst
|
|
grim
|
|
kdePackages.ksystemstats
|
|
libsForQt5.bismuth
|
|
libnotify
|
|
pamixer
|
|
plasma5Packages.bismuth
|
|
rofi-wayland
|
|
swww
|
|
(
|
|
waybar.overrideAttrs (oldAttrs: {
|
|
mesonFlags = oldAttrs.mesonFlags ++ ["-Dexperimental=true"];
|
|
})
|
|
)
|
|
wl-clipboard
|
|
virtiofsd
|
|
];
|
|
xdg.portal.enable = true;
|
|
programs.xwayland.enable = true;
|
|
};
|
|
}
|