Support lorri with home-manager
Prefer starting lorri with home-manager. Note: I could have removed the `systemctl --user start lorri.service` line before switching to home-manager by calling `systemctl --user enable lorri.service`. This would have made a symlink in `~/.config/systemd/user/default.target.wants`.
This commit is contained in:
parent
0045a0dd5a
commit
cb3d1da6c9
4 changed files with 2 additions and 24 deletions
|
@ -60,4 +60,6 @@
|
|||
##############################################################################
|
||||
# Services
|
||||
##############################################################################
|
||||
|
||||
services.lorri.enable = true;
|
||||
}
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
[Unit]
|
||||
ConditionUser=!@system
|
||||
Description=Lorri build daemon
|
||||
After=lorri.socket
|
||||
Wants=lorri.socket
|
||||
|
||||
[Service]
|
||||
ExecStart=%h/.nix-profile/bin/lorri daemon
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
Restart=on-failure
|
||||
WorkingDirectory=%h
|
|
@ -1,9 +0,0 @@
|
|||
[Unit]
|
||||
Description=Lorri build daemon
|
||||
|
||||
[Socket]
|
||||
ListenStream=%t/lorri/daemon.socket
|
||||
RuntimeDirectory=lorri
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
|
@ -44,9 +44,6 @@ eval "$(ssh-agent -s)"
|
|||
# TODO: Prefer `systemctl start docker.service`
|
||||
dockerd &
|
||||
|
||||
# Start lorri
|
||||
systemctl --user start lorri.service
|
||||
|
||||
# Set environment variables for Nix. Don't run this for systems running NixOS.
|
||||
# TODO: Learn why I can't use the variables from ~/briefcase/.envrc.
|
||||
case $(hostname) in
|
||||
|
|
Loading…
Reference in a new issue