Fix transmission running in a container

https://github.com/NixOS/nixpkgs/issues/258793
This commit is contained in:
Zuckerberg 2024-02-03 14:10:31 -07:00
parent 75031567bd
commit e34752c791
2 changed files with 7 additions and 1 deletions

View File

@ -18,7 +18,7 @@
nix.flakes.enable = true; nix.flakes.enable = true;
system.stateVersion = "21.11"; system.stateVersion = "23.11";
networking.useDHCP = false; networking.useDHCP = false;

View File

@ -123,6 +123,12 @@
"download-queue-size" = 20; # gotta go fast "download-queue-size" = 20; # gotta go fast
}; };
}; };
# https://github.com/NixOS/nixpkgs/issues/258793
systemd.services.transmission.serviceConfig = {
RootDirectoryStartOnly = lib.mkForce (lib.mkForce false);
RootDirectory = lib.mkForce (lib.mkForce "");
};
users.groups.public_data.gid = 994; users.groups.public_data.gid = 994;
users.users.public_data = { users.users.public_data = {
isSystemUser = true; isSystemUser = true;