diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-12-26 05:28:45 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-12-26 05:28:45 +0900 |
| commit | b77c1ecfdb545f41fbf847681ac75f29d7998ad9 (patch) | |
| tree | 42abe06fc45241ca913cd9cb5ce9ade885231283 /cmd/sharefs/test/configuration.nix | |
| parent | dce5839a797409bf6b58273fb343764a56f91bbf (diff) | |
cmd/sharefs/test: check option handling
This verifies behaviour related to setuid/setgid when starting as root.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/sharefs/test/configuration.nix')
| -rw-r--r-- | cmd/sharefs/test/configuration.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/cmd/sharefs/test/configuration.nix b/cmd/sharefs/test/configuration.nix index d9c011bc..388071b6 100644 --- a/cmd/sharefs/test/configuration.nix +++ b/cmd/sharefs/test/configuration.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, config, ... }: { users.users = { alice = { @@ -14,8 +14,13 @@ # Automatically login on tty1 as a normal user: services.getty.autologinUser = "alice"; - # For benchmarking sharefs: - environment.systemPackages = [ pkgs.fsmark ]; + environment = { + # For benchmarking sharefs: + systemPackages = [ pkgs.fsmark ]; + + # For sharefs option checks without adding to PATH: + etc.sharefs.source = "${config.environment.hakurei.package}/libexec/sharefs"; + }; virtualisation = { diskSize = 6 * 1024; |
