2022-05-06 03:01:56 +00:00
|
|
|
{ config, pkgs, lib, ... }: {
|
2022-04-27 01:36:16 +00:00
|
|
|
|
2022-04-29 01:15:47 +00:00
|
|
|
services.keybase.enable = true;
|
2022-05-17 02:05:21 +00:00
|
|
|
services.kbfs = {
|
|
|
|
enable = true;
|
2022-05-17 22:36:32 +00:00
|
|
|
# enableRedirector = true;
|
2022-05-17 02:05:21 +00:00
|
|
|
mountPoint = "/run/user/1000/keybase/kbfs";
|
|
|
|
};
|
|
|
|
security.wrappers.keybase-redirector = {
|
|
|
|
setuid = true;
|
|
|
|
owner = "root";
|
|
|
|
group = "root";
|
2022-05-17 22:36:32 +00:00
|
|
|
source = "${pkgs.kbfs}/bin/redirector";
|
2022-05-17 02:05:21 +00:00
|
|
|
};
|
2022-04-27 13:23:26 +00:00
|
|
|
|
2022-05-06 03:01:56 +00:00
|
|
|
home-manager.users.${config.user} = {
|
|
|
|
home.packages = [ (lib.mkIf config.gui.enable pkgs.keybase-gui) ];
|
2022-04-29 01:40:21 +00:00
|
|
|
home.file = let
|
|
|
|
ignorePatterns = ''
|
|
|
|
keybase/
|
|
|
|
kbfs/'';
|
|
|
|
in {
|
|
|
|
".rgignore".text = ignorePatterns;
|
|
|
|
".fdignore".text = ignorePatterns;
|
|
|
|
};
|
|
|
|
};
|
2022-04-27 13:23:26 +00:00
|
|
|
|
2022-04-27 01:36:16 +00:00
|
|
|
}
|