tenseleyflow/hyprkvm / c5eafea

Browse files

fix: systemd service uses nix develop for library deps

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
c5eafea4fb9e917439cdb2a16bfea26bf9354c5a
Parents
e80de63
Tree
950b71b

1 changed file

StatusFile+-
M contrib/systemd/hyprkvm.service 4 4
contrib/systemd/hyprkvm.servicemodified
@@ -5,10 +5,10 @@ PartOf=graphical-session.target
55
 
66
 [Service]
77
 Type=simple
8
-# Adjust the path below to match your installation:
9
-#   - If installed via cargo: %h/.cargo/bin/hyprkvm
10
-#   - If built from source: /path/to/hyprKVM/target/release/hyprkvm
11
-ExecStart=%h/.cargo/bin/hyprkvm daemon
8
+# Set WorkingDirectory to your hyprKVM repo path
9
+WorkingDirectory=%h/path/to/hyprKVM
10
+# Uses nix develop to provide required libraries
11
+ExecStart=/bin/sh -c 'exec nix develop --command ./target/release/hyprkvm daemon'
1212
 Restart=on-failure
1313
 RestartSec=1
1414