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 {
|
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 = {
|
||||||
|
|
||||||
Service = {
|
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStart = "${pkgs.nextcloud-client}/bin/nextcloud --background";
|
ExecStart = "${pkgs.nextcloud-client}/bin/nextcloud --background";
|
||||||
Environment = "QT_XCB_GL_INTEGRATION=none";
|
Environment = "QT_XCB_GL_INTEGRATION=none";
|
||||||
|
@ -34,5 +33,4 @@ in with lib; {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue
Block a user