72904c318c
GitOrigin-RevId: 9bf1f40af124573a54fd208b1f539eb694ef31a6
37 lines
592 B
Nix
37 lines
592 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.services.keybase;
|
|
|
|
in
|
|
|
|
{
|
|
options = {
|
|
services.keybase = {
|
|
enable = mkEnableOption "Keybase";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
home.packages = [ pkgs.keybase ];
|
|
|
|
systemd.user.services.keybase = {
|
|
Unit = {
|
|
Description = "Keybase service";
|
|
};
|
|
|
|
Service = {
|
|
ExecStart = "${pkgs.keybase}/bin/keybase service --auto-forked";
|
|
Restart = "on-failure";
|
|
PrivateTmp = true;
|
|
};
|
|
|
|
Install = {
|
|
WantedBy = [ "default.target" ];
|
|
};
|
|
};
|
|
};
|
|
}
|