test: add simplified file permissions test

Add a test that validates file permissions, ownership, and service access
for key Nixarr services. The test verifies:

- Users and groups exist with correct membership
- Directory ownership matches expected patterns
- Services can write/read files in media directories
- Cross-seed can access transmission state
- fix-permissions command works correctly

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Simon Elsbrock
2025-06-22 16:06:10 +02:00
parent ca624d10a1
commit 26afa5c7af
2 changed files with 167 additions and 0 deletions
+7
View File
@@ -34,6 +34,13 @@
in {
nixosModules.default.imports = [./nixarr vpnconfinement.nixosModules.default];
# Add tests attribute to the flake outputs
checks = forAllSystems ({pkgs}: {
permissions-test = pkgs.callPackage ./tests/permissions-test.nix {
inherit (self) nixosModules;
};
});
devShells = forAllSystems ({pkgs}: {
default = pkgs.mkShell {
packages = with pkgs; [