home-manager/modules/services/keybase.nix
Wael M. Nasreddine 7ab6441ab7
keybase: install the keybase package
(cherry picked from commit 9686d93ff6)
2018-12-06 00:31:13 +01:00

38 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" ];
};
};
};
}