diff --git a/hosts/nixos/common/users/pilot.nix b/hosts/nixos/common/users/pilot.nix index 03fc1b8..6f057b5 100644 --- a/hosts/nixos/common/users/pilot.nix +++ b/hosts/nixos/common/users/pilot.nix @@ -14,6 +14,9 @@ users.pilot = { inherit (config.satellite.pilot) name; + # This gets referenced in other parts of the config + uid = 1000; + # Adds me to some default groups, and creates the home dir isNormalUser = true; @@ -30,6 +33,7 @@ "syncthing" # syncthing! ]; + hashedPasswordFile = config.sops.secrets.pilot_password.path; shell = pkgs.fish; diff --git a/hosts/nixos/lapetus/services/qbittorrent.nix b/hosts/nixos/lapetus/services/qbittorrent.nix index c9a9a13..bdf7443 100644 --- a/hosts/nixos/lapetus/services/qbittorrent.nix +++ b/hosts/nixos/lapetus/services/qbittorrent.nix @@ -25,8 +25,8 @@ in environment = { WEBUI_PORT = toString port; - PUID = "1000"; - PGID = config.users.groups.users.gid; + PUID = toString config.users.users.pilot.uid; + PGID = toString config.users.groups.users.gid; TZ = config.time.timeZone; }; };