diff options
author | Emery Hemingway <emery@vfemail.net> | 2016-04-08 16:32:30 +0200 |
---|---|---|
committer | Emery Hemingway <emery@vfemail.net> | 2016-04-08 16:32:30 +0200 |
commit | c7379b30dc365af07f222b67e4daac2775164934 (patch) | |
tree | eac2fdeea3cb4b0785da5f8dea34d46c357ae4cd /nixos/modules/services/network-filesystems | |
parent | d45ac41e8740a96d59860dfe7c404041a2ed962b (diff) | |
download | nixlib-c7379b30dc365af07f222b67e4daac2775164934.tar nixlib-c7379b30dc365af07f222b67e4daac2775164934.tar.gz nixlib-c7379b30dc365af07f222b67e4daac2775164934.tar.bz2 nixlib-c7379b30dc365af07f222b67e4daac2775164934.tar.lz nixlib-c7379b30dc365af07f222b67e4daac2775164934.tar.xz nixlib-c7379b30dc365af07f222b67e4daac2775164934.tar.zst nixlib-c7379b30dc365af07f222b67e4daac2775164934.zip |
u9fs service: switch user with systemd
Drop the broken fsRoot option.
Diffstat (limited to 'nixos/modules/services/network-filesystems')
-rw-r--r-- | nixos/modules/services/network-filesystems/u9fs.nix | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/nixos/modules/services/network-filesystems/u9fs.nix b/nixos/modules/services/network-filesystems/u9fs.nix index 648097274641..8bc37f0f62c3 100644 --- a/nixos/modules/services/network-filesystems/u9fs.nix +++ b/nixos/modules/services/network-filesystems/u9fs.nix @@ -27,10 +27,17 @@ in ''; }; + user = mkOption { + type = types.str; + default = "nobody"; + description = + "User to run u9fs under."; + }; + extraArgs = mkOption { type = types.str; default = ""; - example = "-a none -u nobody"; + example = "-a none"; description = '' Extra arguments to pass on invocation, @@ -38,13 +45,6 @@ in ''; }; - fsroot = mkOption { - type = types.path; - default = "/"; - example = "/srv"; - description = "File system root to serve to clients."; - }; - }; }; @@ -63,9 +63,10 @@ in reloadIfChanged = true; requires = [ "u9fs.socket" ]; serviceConfig = - { ExecStart = "-${pkgs.u9fs}/bin/u9fs ${cfg.extraArgs} ${cfg.fsroot}"; + { ExecStart = "-${pkgs.u9fs}/bin/u9fs ${cfg.extraArgs}"; StandardInput = "socket"; StandardError = "journal"; + User = cfg.user; }; }; }; |