You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Running the Paseo daemon as a user service on a single-user NixOS host
#3041
Run the Paseo daemon on a single-user NixOS Box (think home server, always-on workstation, dev laptop) so I can reach the web UI from my phone and desktop on the LAN, and have agents spawn with my real user credentials available (SSH keys for git push, gh auth, my ~/.aws/credentials, Nix-profile CLIs).
How I do it today
I built a small home-manager module that runs Paseo as a systemd.user.services.paseo unit, default data dir ~/.paseo, default listen 0.0.0.0:6767. It's been working in production for a few months on my box, with password auth via a plaintext file copied at activation (secret never enters the nix store) and a small dance to avoid restarting the user unit on identical-content home-manager switches.
I'm not the only one wanting this shape — opencode-web ships an analogous home-manager module for the same reason (user credentials, user session, user-scoped state). It's a recurring pattern for "long-lived agent orchestrator that needs my real $HOME".
Where Paseo gets in the way
The current flake.nix only exposes nixosModules.paseo. That module hardcodes:
a paseo system user and group,
dataDir = /var/lib/paseo (separate from the user's home, separate backup story),
WantedBy = [ "multi-user.target" ],
services.paseo.environment for PATH / secrets injection,
networking.firewall.allowedTCPPorts exposure.
For a single-user home-manager host that's all friction: I don't want a paseo system user on a Box; my $HOME already holds everything the daemon needs; ~/.paseo is already backed up; and re-pointing environment at user paths is the wrong abstraction.
I can keep my own module out of tree, and that's fine — but it's a recurring pattern other Nix users will hit too, and upstream shipping it would mean one less home-grown module in the wild.
What the flow would look like if it worked for me
A second flake output alongside the existing NixOS module:
…and nix/home-module.nix that mirrors nix/module.nix with these deltas:
NixOS module
home-manager module
users.users.${cfg.user}
omit — user is the home-manager user
systemd.tmpfiles.rules for dataDir
home.file."${dataDir}/.keep".text = ""
systemd.services.paseo
systemd.user.services.paseo
WantedBy = multi-user.target
Install.WantedBy = default.target
cfg.user, cfg.group
omit
cfg.dataDir default /var/lib/paseo
default ~/.paseo
cfg.listenAddress default 127.0.0.1
default 0.0.0.0 (LAN access is the typical use case)
networking.firewall
omit
settings written in preStart
also re-installed by ExecStartPre (reboot/linger safety)
The remaining option surface (relay.{enable,mode,host,port,useTls}, hostnames, port, settings, environment) stays identical between modules so a config can move between NixOS and home-manager with minimal changes.
What I'd also want surfaced
A small handful of options that the NixOS module doesn't need but a home-manager module does:
services.paseo.passwordFile — plaintext file the activation cats into a 0600 env file as PASEO_PASSWORD. Secret never enters the nix store. (Same UX as agenix/sops for any secret-bearing module.)
services.paseo.configFile — a config.json the user manages (with paseo daemon hash-password used to embed the pre-hashed password), installed at ${dataDir}/config.json (mode 0600) at activation and re-installed by ExecStartPre on every service start.
Both nullOr path, both default null, assertion fires if both are set. Users on agenix/sops/ragen leave both null and pass --password-file /run/secrets/... via extraArgs.
And one activation helper that's specific to home-manager: a hash snapshot/restore around linkGeneration so the user unit isn't restarted on a no-op home-manager switch (which kills any in-flight agent session).
What I can offer
I have a working module — currently in my own dotfiles — that I'd be happy to PR once there's alignment on the shape. I can:
Write nix/home-module.nix (the table above) and add the homeManagerModules.{default,paseo} exports to flake.nix.
Add the hash snapshot/restore activation.
Test on my NixOS Box (nixos-26.05, home-manager release-26.05).
Provide the QA evidence the CONTRIBUTING guide asks for (commands run with output, before/after, platform coverage).
Out of scope for a first PR (but possible follow-ups):
passwordFile / configFile options — only if maintainers want them; happy to keep auth management in settings only if that's the preference.
Lifting settings JSON rendering into a shared helper both modules import.
Open questions
Two exports (nixosModules + homeManagerModules) or a single module with a services.paseo.userType = "system" | "user" switch? (Two exports seem cleaner — the option sets genuinely differ.)
Should the home-manager module default package to the flake's packages.<sys>.paseo, or leave it unset so the module is usable without the flake?
Is the identical-content unit-restart activation worth taking on as a default, or better left as a downstream concern?
Does the relay.mode = "remote" flow translate cleanly to a user service (just PASEO_RELAY_* env vars), or are there subtleties?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
What I'm trying to do
Run the Paseo daemon on a single-user NixOS Box (think home server, always-on workstation, dev laptop) so I can reach the web UI from my phone and desktop on the LAN, and have agents spawn with my real user credentials available (SSH keys for
git push,ghauth, my~/.aws/credentials, Nix-profile CLIs).How I do it today
I built a small home-manager module that runs Paseo as a
systemd.user.services.paseounit, default data dir~/.paseo, default listen0.0.0.0:6767. It's been working in production for a few months on my box, with password auth via a plaintext file copied at activation (secret never enters the nix store) and a small dance to avoid restarting the user unit on identical-contenthome-manager switches.I'm not the only one wanting this shape — opencode-web ships an analogous home-manager module for the same reason (user credentials, user session, user-scoped state). It's a recurring pattern for "long-lived agent orchestrator that needs my real
$HOME".Where Paseo gets in the way
The current
flake.nixonly exposesnixosModules.paseo. That module hardcodes:paseosystem user and group,dataDir = /var/lib/paseo(separate from the user's home, separate backup story),WantedBy = [ "multi-user.target" ],services.paseo.environmentfor PATH / secrets injection,networking.firewall.allowedTCPPortsexposure.For a single-user home-manager host that's all friction: I don't want a
paseosystem user on a Box; my$HOMEalready holds everything the daemon needs;~/.paseois already backed up; and re-pointingenvironmentat user paths is the wrong abstraction.I can keep my own module out of tree, and that's fine — but it's a recurring pattern other Nix users will hit too, and upstream shipping it would mean one less home-grown module in the wild.
What the flow would look like if it worked for me
A second flake output alongside the existing NixOS module:
…and
nix/home-module.nixthat mirrorsnix/module.nixwith these deltas:users.users.${cfg.user}systemd.tmpfiles.rulesfor dataDirhome.file."${dataDir}/.keep".text = ""systemd.services.paseosystemd.user.services.paseoWantedBy = multi-user.targetInstall.WantedBy = default.targetcfg.user,cfg.groupcfg.dataDirdefault/var/lib/paseo~/.paseocfg.listenAddressdefault127.0.0.10.0.0.0(LAN access is the typical use case)networking.firewallsettingswritten inpreStartExecStartPre(reboot/linger safety)The remaining option surface (
relay.{enable,mode,host,port,useTls},hostnames,port,settings,environment) stays identical between modules so a config can move between NixOS and home-manager with minimal changes.What I'd also want surfaced
A small handful of options that the NixOS module doesn't need but a home-manager module does:
services.paseo.passwordFile— plaintext file the activationcats into a 0600 env file asPASEO_PASSWORD. Secret never enters the nix store. (Same UX as agenix/sops for any secret-bearing module.)services.paseo.configFile— aconfig.jsonthe user manages (withpaseo daemon hash-passwordused to embed the pre-hashed password), installed at${dataDir}/config.json(mode 0600) at activation and re-installed byExecStartPreon every service start.Both
nullOr path, both defaultnull, assertion fires if both are set. Users on agenix/sops/ragen leave both null and pass--password-file /run/secrets/...viaextraArgs.And one activation helper that's specific to home-manager: a hash snapshot/restore around
linkGenerationso the user unit isn't restarted on a no-ophome-manager switch(which kills any in-flight agent session).What I can offer
I have a working module — currently in my own dotfiles — that I'd be happy to PR once there's alignment on the shape. I can:
nix/home-module.nix(the table above) and add thehomeManagerModules.{default,paseo}exports toflake.nix.nixos-26.05,home-manager release-26.05).Out of scope for a first PR (but possible follow-ups):
passwordFile/configFileoptions — only if maintainers want them; happy to keep auth management insettingsonly if that's the preference.settingsJSON rendering into a shared helper both modules import.Open questions
nixosModules+homeManagerModules) or a single module with aservices.paseo.userType = "system" | "user"switch? (Two exports seem cleaner — the option sets genuinely differ.)packageto the flake'spackages.<sys>.paseo, or leave it unset so the module is usable without the flake?relay.mode = "remote"flow translate cleanly to a user service (justPASEO_RELAY_*env vars), or are there subtleties?All reactions