mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-24 23:51:54 -05:00
nixosModules: drop plasma
This commit is contained in:
parent
5902de4177
commit
35dd665979
|
@ -10,7 +10,6 @@
|
||||||
./greetd
|
./greetd
|
||||||
./hyprland
|
./hyprland
|
||||||
./lightdm
|
./lightdm
|
||||||
./plasma
|
|
||||||
./sway
|
./sway
|
||||||
./waylandComp.nix
|
./waylandComp.nix
|
||||||
];
|
];
|
||||||
|
@ -20,7 +19,6 @@
|
||||||
config.ar.desktop.cinnamon.enable
|
config.ar.desktop.cinnamon.enable
|
||||||
|| config.ar.desktop.gnome.enable
|
|| config.ar.desktop.gnome.enable
|
||||||
|| config.ar.desktop.hyprland.enable
|
|| config.ar.desktop.hyprland.enable
|
||||||
|| config.ar.desktop.plasma.enable
|
|
||||||
|| config.ar.desktop.steam.enable
|
|| config.ar.desktop.steam.enable
|
||||||
|| config.ar.desktop.sway.enable
|
|| config.ar.desktop.sway.enable
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -1,46 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
plasmaCsAdjuster = pkgs.writeShellScriptBin "plasma-cs-adjuster" ''
|
|
||||||
# Query the Desktop Portal Service for the current color scheme
|
|
||||||
color_scheme=$(${lib.getExe' pkgs.kdePackages.qttools "qdbus"} org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Settings.Read org.freedesktop.appearance color-scheme)
|
|
||||||
|
|
||||||
# Check the color scheme and apply the appropriate look and feel
|
|
||||||
if [ "$color_scheme" = "1" ]; then
|
|
||||||
${lib.getExe' pkgs.kdePackages.plasma-workspace "plasma-apply-lookandfeel"} -a org.kde.breeze.desktop
|
|
||||||
else
|
|
||||||
${lib.getExe' pkgs.kdePackages.plasma-workspace "plasma-apply-lookandfeel"} -a org.kde.breezedark.desktop
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
in {
|
|
||||||
config = lib.mkIf config.ar.desktop.plasma.enable {
|
|
||||||
environment.systemPackages = with pkgs;
|
|
||||||
[
|
|
||||||
kdePackages.kate
|
|
||||||
kdePackages.kimageformats
|
|
||||||
kdePackages.kio-gdrive
|
|
||||||
kdePackages.sddm-kcm
|
|
||||||
maliit-keyboard
|
|
||||||
]
|
|
||||||
++ [plasmaCsAdjuster];
|
|
||||||
|
|
||||||
programs.kdeconnect.enable = true;
|
|
||||||
|
|
||||||
security.pam.services.sddm = {
|
|
||||||
enableGnomeKeyring = true;
|
|
||||||
gnupg.enable = true;
|
|
||||||
kwallet.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
desktopManager.plasma6.enable = true;
|
|
||||||
displayManager.sddm = {
|
|
||||||
enable = true;
|
|
||||||
wayland.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -27,9 +27,8 @@
|
||||||
# Authentication management.
|
# Authentication management.
|
||||||
auth sufficient pam_unix.so likeauth try_first_pass likeauth nullok # unix (order 11500)
|
auth sufficient pam_unix.so likeauth try_first_pass likeauth nullok # unix (order 11500)
|
||||||
${
|
${
|
||||||
if config.services.fprintd.enable
|
lib.strings.optionalString config.services.fprintd.enable
|
||||||
then "auth sufficient ${pkgs.fprintd}/lib/security/pam_fprintd.so # fprintd (order 11300)"
|
"auth sufficient ${pkgs.fprintd}/lib/security/pam_fprintd.so # fprintd (order 11300)"
|
||||||
else ""
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auth required pam_deny.so # deny (order 12300)
|
auth required pam_deny.so # deny (order 12300)
|
||||||
|
|
|
@ -43,7 +43,6 @@
|
||||||
|
|
||||||
hyprland.enable = lib.mkEnableOption "Hyprland wayland session.";
|
hyprland.enable = lib.mkEnableOption "Hyprland wayland session.";
|
||||||
lightdm.enable = lib.mkEnableOption "Lightdm display manager.";
|
lightdm.enable = lib.mkEnableOption "Lightdm display manager.";
|
||||||
plasma.enable = lib.mkEnableOption "Plasma desktop session.";
|
|
||||||
steam.enable = lib.mkEnableOption "Steam + Gamescope session.";
|
steam.enable = lib.mkEnableOption "Steam + Gamescope session.";
|
||||||
sway.enable = lib.mkEnableOption "Sway wayland session.";
|
sway.enable = lib.mkEnableOption "Sway wayland session.";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue