diff options
| author | Martin Fischer <martin@push-f.com> | 2025-12-26 10:19:40 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2025-12-26 10:20:09 +0100 |
| commit | 46b96c364c90e6d256365feda10cb96122044d22 (patch) | |
| tree | ddd34b9f15f4bca306fb9b0fb089fc43fd2a4c77 | |
| parent | 5e0389a2638e8b8af5bdbd1579eb38f1412d9a68 (diff) | |
refactor(ev): make qbittorrent user own /mnt/lib
And rename it to library.
| -rw-r--r-- | nixos/hosts/ev/default.nix | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/nixos/hosts/ev/default.nix b/nixos/hosts/ev/default.nix index 1a50366..5971755 100644 --- a/nixos/hosts/ev/default.nix +++ b/nixos/hosts/ev/default.nix @@ -71,29 +71,38 @@ in users.groups = { kodi = {}; - qbittorrent = {}; + library = {}; }; + systemd.tmpfiles.rules = [ + "d /mnt/lib 2770 library library -" + ]; + users.users = { martin = { isNormalUser = true; extraGroups = [ "networkmanager" "wheel" + + # directory-specific + "library" ]; }; kodi = { isSystemUser = true; group = "kodi"; + extraGroups = ["library"]; home = "/home/kodi"; createHome = true; }; - qbittorrent = { + library = { isSystemUser = true; - group = "qbittorrent"; - home = "/var/lib/qbittorrent"; + group = "library"; + # qbittorrent needs the home + home = "/home/library"; createHome = true; }; }; @@ -128,7 +137,7 @@ in }; qbittorrent = { - user = "qbittorrent"; + user = "library"; webUiPort = ports.qbittorrent; networkNamespace = "se"; }; |
