Compare commits

..

2 Commits

Author SHA1 Message Date
17b2c4b55d desktop/plasma: fix 'cause stylix broke everything
Signed-off-by: unexplrd <unexplrd@linerds.us>
2025-04-27 12:10:16 +03:00
566c25977b hosts/eldrid: turn back into workstation
Signed-off-by: unexplrd <unexplrd@linerds.us>
2025-04-27 12:10:16 +03:00
5 changed files with 21 additions and 3 deletions

View File

@ -14,7 +14,7 @@
./users.nix
];
# desktop.niri.enable = true;
desktop.plasma.enable = true;
locale.ukrainian.enable = true;

View File

@ -1,6 +1,7 @@
# TODO: better file name
{
config,
inputs,
pkgs,
...
}: let

View File

@ -2,7 +2,6 @@
imports = [
../../../dunamis/users/user/common.nix
../../../dunamis/users/user/programs.nix
# ../../../dunamis/users/user/flatpak.nix
../../../dunamis/users/user/flatpak.nix
];
syncthing.enable = lib.mkDefault false;
}

View File

@ -1,10 +1,12 @@
{
osConfig,
config,
pkgs,
lib,
...
}:
with lib; let
inherit (osConfig.module.stylix) theme;
cfg = config.desktop.plasma;
in {
options = {
@ -12,8 +14,23 @@ in {
mkEnableOption "enable plasma desktop";
};
config = mkIf cfg.enable {
stylix.targets.qt.enable = mkDefault false;
stylix.targets.kde.enable = mkDefault true;
home.packages = with pkgs; [
wl-clipboard-rs
];
gtk = {
enable = true;
iconTheme = {
name =
if config.stylix.polarity == "dark"
then "Papirus-Dark"
else "Papirus-Light";
package =
if (removeSuffix "-light" theme) == "nord"
then pkgs.papirus-nord
else pkgs.papirus-icon-theme;
};
};
};
}

View File

@ -16,6 +16,7 @@ in {
};
};
config = mkIf cfg.enable {
stylix.targets.qt.enable = mkDefault false;
services = {
desktopManager.plasma6.enable = true;
displayManager.sddm = {