mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 17:41:12 +00:00
600f393bc7
Keybase is _extremely_ verbose with its debug output when run with -d.
42 lines
731 B
Nix
42 lines
731 B
Nix
{ config, lib, pkgs, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.services.keybase;
|
|
|
|
in {
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.keybase = {
|
|
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = "Whether to start the Keybase service.";
|
|
};
|
|
|
|
};
|
|
};
|
|
|
|
###### implementation
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
systemd.user.services.keybase = {
|
|
description = "Keybase service";
|
|
serviceConfig = {
|
|
ExecStart = ''
|
|
${pkgs.keybase}/bin/keybase service --auto-forked
|
|
'';
|
|
Restart = "on-failure";
|
|
PrivateTmp = true;
|
|
};
|
|
wantedBy = [ "default.target" ];
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.keybase ];
|
|
};
|
|
}
|