This commit is contained in:
Daniel Bulant 2026-06-04 21:47:23 +02:00
parent 03f7e499ef
commit 47b0bbcd1c
No known key found for this signature in database

View file

@ -6,15 +6,10 @@
config, config,
pkgs, pkgs,
options, options,
nixpkgs-unstable,
lib, lib,
dms, dms,
... ...
}: }:
let
unstable-pkgs = nixpkgs-unstable.legacyPackages.x86_64-linux; # import nixpkgs-unstable.nixosModules.readOnlyPkgs {};
# unstable-pkgs = hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{ {
imports = [ imports = [
dms.nixosModules.greeter dms.nixosModules.greeter
@ -262,18 +257,45 @@ in
}; };
}; };
}; };
systemd.user.services.plasma-xdg-desktop-portal-kde = { systemd.user.services = {
unitConfig = { xdg-desktop-portal-hyprland = {
Description = "Xdg Desktop Portal For KDE"; unitConfig = {
PartOf = "graphical-session.target"; Description = "Portal service (Hyprland implementation)";
After = "plasma-core.target"; PartOf = "graphical-session.target";
ConditionEnvironment = "XDG_CURRENT_DESKTOP=KDE"; After = [
"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 = {
ExecStart = "${pkgs.kdePackages.xdg-desktop-portal-kde}/libexec/xdg-desktop-portal-kde"; plasma-xdg-desktop-portal-kde = {
BusName = "org.freedesktop.impl.portal.desktop.kde"; unitConfig = {
Slice = "session.slice"; Description = "Xdg Desktop Portal For KDE";
Restart = "no"; PartOf = "graphical-session.target";
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 = {
@ -444,22 +466,6 @@ in
)) ))
]; ];
environment.variables =
let
qtVersions = with pkgs; [
qt5
qt6
];
in
{
QT_PLUGIN_PATH = map (qt: "/${qt.qtbase.qtPluginPrefix}") qtVersions;
QML2_IMPORT_PATH =
map (qt: "/${qt.qtbase.qtQmlPrefix}") qtVersions
++ (with unstable-pkgs; [
"${quickshell}/lib/qt-6/qml/"
]);
};
nixpkgs.config = { nixpkgs.config = {
allowUnfree = true; allowUnfree = true;
cudaSupport = true; cudaSupport = true;