1
Fork 0

Mosh and some gpg stuff

This commit is contained in:
Matei Adriel 2023-07-18 23:58:42 +03:00
parent bc51766594
commit 96be934cde
No known key found for this signature in database
3 changed files with 39 additions and 3 deletions

View file

@ -0,0 +1,30 @@
{ pkgs, config, ... }:
let
pinentry =
if config.gtk.enable then {
packages = [ pkgs.pinentry-gnome pkgs.gcr ];
name = "gnome3";
} else {
packages = [ pkgs.pinentry-curses ];
name = "curses";
};
in
{
home.packages = pinentry.packages;
# TODO: consider ssh support
services.gpg-agent = {
enable = true;
pinentryFlavor = pinentry.name;
};
programs.gpg = {
enable = true;
settings = {
trust-model = "tofu+pgp";
};
# publicKeys = [{
# trust = 5;
# }];
};
}

View file

@ -1,6 +1,11 @@
{ ... }: { { pkgs, ... }: {
programs.ssh.enable = true; programs.ssh.enable = true;
home.packages = with pkgs; [
mosh # SSH replacement for slow connections
];
# TODO: persistence
# home.persistence = { # home.persistence = {
# "/persist/home/adrielus".directories = [ ".ssh" ]; # "/persist/home/adrielus".directories = [ ".ssh" ];
# }; # };

View file

@ -1,5 +1,6 @@
{ pkgs, config, ... }: { { upkgs, config, ... }: {
home.packages = [ pkgs.wezterm ]; # REASON: newer version
home.packages = [ upkgs.wezterm ];
# Create link to config # Create link to config
xdg.configFile."wezterm/colorscheme.lua".text = config.satellite.colorscheme.lua; xdg.configFile."wezterm/colorscheme.lua".text = config.satellite.colorscheme.lua;