Fix gsettings use from systemd services (darkman)

This commit is contained in:
2025-02-09 18:15:28 +01:00
parent 509c2e7eca
commit 66e0c96cab
2 changed files with 11 additions and 7 deletions
-6
View File
@@ -132,12 +132,6 @@ in {
};
home.file.".face".source = ../../face.png;
# Allow gsettings to work
xdg.systemDirs.data = [
"${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}"
"${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}"
];
xdg.configFile."autostart/vesktop.desktop".text = ''
[Desktop Entry]
Type=Application
+11 -1
View File
@@ -1,4 +1,8 @@
{pkgs, ...}: {
{
pkgs,
lib,
...
}: {
imports = [
./fonts.nix
];
@@ -65,4 +69,10 @@
];
security.pam.services.hyprlock = {};
# Allow gsettings to work
environment.sessionVariables.XDG_DATA_DIRS = [
"${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}"
"${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}"
];
}