Move systemd to its own file
This commit is contained in:
parent
286911e4b8
commit
e76c198f36
26
home.nix
26
home.nix
|
@ -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
25
home/systemd.nix
Normal 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"
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue