Switched from home-manger -> nixos systemd target
I'm currently trying to standardize on this due to runtime issue with the home-manager syntax.
This commit is contained in:
parent
5fc72bd6d4
commit
4e6b969cc7
|
@ -13,17 +13,16 @@ in with lib; {
|
|||
config = mkIf cfg.enable {
|
||||
home-manager.users.james = {
|
||||
home.packages = with pkgs; [ nextcloud-client ];
|
||||
};
|
||||
|
||||
systemd.user.services = {
|
||||
nextcloud = {
|
||||
Unit = {
|
||||
Description = "Nextcloud - A slightly more GNU friendly dropbox";
|
||||
BindsTo = [ "graphical-session.target" ];
|
||||
Wants = [ "graphical-session-pre.target" ];
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
enable = true;
|
||||
description =
|
||||
"Nextcloud Client - A slightly more GNU friendly dropbox ";
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
partOf = [ "graphical-session.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.nextcloud-client}/bin/nextcloud --background";
|
||||
Environment = "QT_XCB_GL_INTEGRATION=none";
|
||||
|
@ -34,5 +33,4 @@ in with lib; {
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Reference in New Issue
Block a user