1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

kbfs: normal users only

This commit is contained in:
Peter Hoeg 2017-10-23 16:50:20 +08:00
parent 24c61cafa5
commit feed9154c0

View file

@ -48,6 +48,7 @@ in {
requires = [ "keybase.service" ]; requires = [ "keybase.service" ];
after = [ "keybase.service" ]; after = [ "keybase.service" ];
path = [ "/run/wrappers" ]; path = [ "/run/wrappers" ];
unitConfig.ConditionUser = "!@system";
serviceConfig = { serviceConfig = {
ExecStartPre = "${pkgs.coreutils}/bin/mkdir -p ${cfg.mountPoint}"; ExecStartPre = "${pkgs.coreutils}/bin/mkdir -p ${cfg.mountPoint}";
ExecStart = "${pkgs.kbfs}/bin/kbfsfuse ${toString cfg.extraFlags} ${cfg.mountPoint}"; ExecStart = "${pkgs.kbfs}/bin/kbfsfuse ${toString cfg.extraFlags} ${cfg.mountPoint}";