From fdb81a7ea02468932b3095925469e28a59118d34 Mon Sep 17 00:00:00 2001 From: Ingolf Wanger Date: Fri, 8 Feb 2019 19:58:26 +0100 Subject: [PATCH] nixos: use correct username for systemd service (cherry picked from commit fbdb5beb5941f79fc38c5c3d92b0029c4aa40ab5) --- nixos/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/default.nix b/nixos/default.nix index b8cea735..1e1131f9 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -38,7 +38,7 @@ in after = [ "nix-daemon.socket" ]; serviceConfig = { - User = username; + User = usercfg.home.username; Type = "oneshot"; RemainAfterExit = "yes"; SyslogIdentifier = "hm-activate-${username}";