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:
James Patrick 2022-07-16 18:46:36 -04:00
parent 5fc72bd6d4
commit 4e6b969cc7

View File

@ -13,24 +13,22 @@ in with lib; {
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.james = { home-manager.users.james = {
home.packages = with pkgs; [ nextcloud-client ]; home.packages = with pkgs; [ nextcloud-client ];
};
systemd.user.services = { systemd.user.services = {
nextcloud = { nextcloud = {
Unit = { enable = true;
Description = "Nextcloud - A slightly more GNU friendly dropbox"; description =
BindsTo = [ "graphical-session.target" ]; "Nextcloud Client - A slightly more GNU friendly dropbox ";
Wants = [ "graphical-session-pre.target" ]; wantedBy = [ "graphical-session.target" ];
After = [ "graphical-session-pre.target" ]; partOf = [ "graphical-session.target" ];
}; serviceConfig = {
Type = "simple";
Service = { ExecStart = "${pkgs.nextcloud-client}/bin/nextcloud --background";
Type = "simple"; Environment = "QT_XCB_GL_INTEGRATION=none";
ExecStart = "${pkgs.nextcloud-client}/bin/nextcloud --background"; Restart = "on-failure";
Environment = "QT_XCB_GL_INTEGRATION=none"; RestartSec = 1;
Restart = "on-failure"; TimeoutStopSec = 10;
RestartSec = 1;
TimeoutStopSec = 10;
};
}; };
}; };
}; };