attempt to simplify and fix

This commit is contained in:
Daniel Bulant 2026-06-04 23:09:58 +02:00
parent 47b0bbcd1c
commit 8b4ec77e93
No known key found for this signature in database
2 changed files with 16 additions and 64 deletions

View file

@ -109,17 +109,13 @@
LC_TIME = "en_GB.UTF-8"; LC_TIME = "en_GB.UTF-8";
}; };
services.displayManager.sddm.enable = true; services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true;
services.desktopManager.plasma6 = { services.desktopManager.plasma6 = {
enable = true; enable = true;
}; };
# services.desktopManager.gnome.enable = true; # services.desktopManager.gnome.enable = true;
services.xserver = { services.xserver.xkb = {
enable = false; layout = "us";
xkb = { variant = "";
layout = "us";
variant = "";
};
}; };
services.printing.enable = true; services.printing.enable = true;
@ -223,8 +219,6 @@
programs.hyprland = { programs.hyprland = {
enable = true; enable = true;
# Installs UWSM's user units required by the Hyprland (uwsm-managed) session.
withUWSM = true;
# package = hyprland.packages.${pkgs.system}.hyprland; # package = hyprland.packages.${pkgs.system}.hyprland;
# portalPackage = hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland.override # portalPackage = hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland.override
# { # {
@ -257,45 +251,18 @@
}; };
}; };
}; };
systemd.user.services = { systemd.user.services.plasma-xdg-desktop-portal-kde = {
xdg-desktop-portal-hyprland = { unitConfig = {
unitConfig = { Description = "Xdg Desktop Portal For KDE";
Description = "Portal service (Hyprland implementation)"; PartOf = "graphical-session.target";
PartOf = "graphical-session.target"; After = "plasma-core.target";
After = [ ConditionEnvironment = "XDG_CURRENT_DESKTOP=KDE";
"graphical-session.target"
"wayland-session-waitenv.service"
"wayland-wm@hyprland.desktop.service"
];
Wants = [ "wayland-session-waitenv.service" ];
ConditionEnvironment = [
"WAYLAND_DISPLAY"
"HYPRLAND_INSTANCE_SIGNATURE"
];
};
serviceConfig = {
Type = "dbus";
BusName = "org.freedesktop.impl.portal.desktop.hyprland";
ExecStart = "${pkgs.xdg-desktop-portal-hyprland}/libexec/xdg-desktop-portal-hyprland";
Restart = "on-failure";
RestartSec = "2s";
Slice = "session.slice";
};
}; };
serviceConfig = {
plasma-xdg-desktop-portal-kde = { ExecStart = "${pkgs.kdePackages.xdg-desktop-portal-kde}/libexec/xdg-desktop-portal-kde";
unitConfig = { BusName = "org.freedesktop.impl.portal.desktop.kde";
Description = "Xdg Desktop Portal For KDE"; Slice = "session.slice";
PartOf = "graphical-session.target"; Restart = "no";
After = "plasma-core.target";
ConditionEnvironment = "XDG_CURRENT_DESKTOP=KDE";
};
serviceConfig = {
ExecStart = "${pkgs.kdePackages.xdg-desktop-portal-kde}/libexec/xdg-desktop-portal-kde";
BusName = "org.freedesktop.impl.portal.desktop.kde";
Slice = "session.slice";
Restart = "no";
};
}; };
}; };
programs.dank-material-shell.greeter = { programs.dank-material-shell.greeter = {

View file

@ -38,22 +38,7 @@ let
}; };
}); });
}; };
codexbarWrapped = pkgs.writeShellApplication {
name = "codexbar";
runtimeInputs = [ pkgs.bubblewrap ];
text = ''
exec bwrap \
--die-with-parent \
--bind / / \
--dev-bind /dev /dev \
--proc /proc \
--tmpfs /usr \
--dir /usr/bin \
--ro-bind ${pkgs.which}/bin/which /usr/bin/which \
-- \
${codexbar.packages.${pkgs.system}.default}/bin/codexbar "$@"
'';
};
vesktopWrapped = pkgs.vesktop.overrideAttrs (oldAttrs: { vesktopWrapped = pkgs.vesktop.overrideAttrs (oldAttrs: {
nativeBuildInputs = (oldAttrs.nativeBuildInputs or [ ]) ++ [ pkgs.makeWrapper ]; nativeBuildInputs = (oldAttrs.nativeBuildInputs or [ ]) ++ [ pkgs.makeWrapper ];
postFixup = (oldAttrs.postFixup or "") + '' postFixup = (oldAttrs.postFixup or "") + ''
@ -81,7 +66,7 @@ in
firefox firefox
unrar unrar
wine wine
codexbarWrapped codexbar.packages.${pkgs.system}.default
codex codex
jellyfin-desktop jellyfin-desktop
(kdePackages.qt6ct.overrideAttrs (oldAttrs: { (kdePackages.qt6ct.overrideAttrs (oldAttrs: {