mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 19:15:37 +00:00
29 lines
637 B
Nix
29 lines
637 B
Nix
{ config, pkgs, lib, ... }: {
|
|
|
|
services.keybase.enable = true;
|
|
services.kbfs = {
|
|
enable = true;
|
|
# enableRedirector = true;
|
|
mountPoint = "/run/user/1000/keybase/kbfs";
|
|
};
|
|
security.wrappers.keybase-redirector = {
|
|
setuid = true;
|
|
owner = "root";
|
|
group = "root";
|
|
source = "${pkgs.kbfs}/bin/redirector";
|
|
};
|
|
|
|
home-manager.users.${config.user} = {
|
|
home.packages = [ (lib.mkIf config.gui.enable pkgs.keybase-gui) ];
|
|
home.file = let
|
|
ignorePatterns = ''
|
|
keybase/
|
|
kbfs/'';
|
|
in {
|
|
".rgignore".text = ignorePatterns;
|
|
".fdignore".text = ignorePatterns;
|
|
};
|
|
};
|
|
|
|
}
|