Move systemd to its own file

This commit is contained in:
Daniel Siepmann 2022-05-20 16:10:39 +02:00
parent 286911e4b8
commit e76c198f36
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 27 additions and 24 deletions

View file

@ -95,30 +95,8 @@
nextcloud-client.enable = true;
};
systemd.user = {
services = {
# Temporary fix to OpenGL issue by using GLX.
# Start nextcloud without GLX support which is fine for me for noe.
# I don't have a better way for now, then using `pkgs.lib.mkForce` and setting whole value (repeating from modules/services/nextcloud-client.nix).
nextcloud-client.Service.Environment = pkgs.lib.mkForce [
"PATH=${config.home.profileDirectory}/bin"
"QT_XCB_GL_INTEGRATION=none"
];
batteryicon = import ./home/services/batteryicon.nix {
inherit pkgs;
};
};
tmpfiles.rules = [
"L ${config.home.homeDirectory}/.themes - - - - ${config.home.homeDirectory}/.nix-profile/share/themes"
"L ${config.home.homeDirectory}/.icons - - - - ${config.home.homeDirectory}/.nix-profile/share/icons"
"L ${config.home.homeDirectory}/.local/share/applications - - - - ${config.home.homeDirectory}/.nix-profile/share/applications"
];
systemd.user = import ./home/systemd.nix {
inherit config pkgs;
};
}

25
home/systemd.nix Normal file
View file

@ -0,0 +1,25 @@
{ config, pkgs }:
{
services = {
# Temporary fix to OpenGL issue by using GLX.
# Start nextcloud without GLX support which is fine for me for noe.
# I don't have a better way for now, then using `pkgs.lib.mkForce` and setting whole value (repeating from modules/services/nextcloud-client.nix).
nextcloud-client.Service.Environment = pkgs.lib.mkForce [
"PATH=${config.home.profileDirectory}/bin"
"QT_XCB_GL_INTEGRATION=none"
];
batteryicon = import ./services/batteryicon.nix {
inherit pkgs;
};
};
tmpfiles.rules = [
"L ${config.home.homeDirectory}/.themes - - - - ${config.home.profileDirectory}/share/themes"
"L ${config.home.homeDirectory}/.icons - - - - ${config.home.profileDirectory}/share/icons"
"L ${config.home.homeDirectory}/.local/share/applications - - - - ${config.home.profileDirectory}/share/applications"
];
}