Skip to content

Instantly share code, notes, and snippets.

@taktoa
Created November 22, 2017 20:21
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taktoa/3133a4d9b1614fad1f4841f145441406 to your computer and use it in GitHub Desktop.
Save taktoa/3133a4d9b1614fad1f4841f145441406 to your computer and use it in GitHub Desktop.
Getting the Keybase GUI to work on NixOS
# Add this file to your /etc/nixos/configuration.nix `imports = [ ... ];` attribute.
#
# After running `nixos-rebuild switch`, `systemctl --user start keybase-gui.service`
# can be used to start the Keybase GUI.
#
# Not sure if it's just my tiling window manager, but there is a bit of wonkiness
# with the tray icon. Other than that it works perfectly (as of 2017/11/22).
{ pkgs, ... }:
{
services.kbfs = {
enable = true;
mountPoint = "%t/kbfs";
extraFlags = [ "-label %u" ];
};
systemd.user.services = {
keybase.serviceConfig.Slice = "keybase.slice";
kbfs = {
environment = { KEYBASE_RUN_MODE = "prod"; };
serviceConfig.Slice = "keybase.slice";
};
keybase-gui = {
description = "Keybase GUI";
requires = [ "keybase.service" "kbfs.service" ];
after = [ "keybase.service" "kbfs.service" ];
serviceConfig = {
ExecStart = "${pkgs.keybase-gui}/share/keybase/Keybase";
PrivateTmp = true;
Slice = "keybase.slice";
};
};
};
}
@bejinxed
Copy link

still works.. thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment