nixos-config/home/felschr-server.nix

36 lines
824 B
Nix
Raw Normal View History

{ config, pkgs, lib, ... }:
2020-09-27 14:27:25 +02:00
{
2024-04-30 23:23:18 +02:00
imports = [ ./shell ./editors/lsp.nix ./editors/helix ./git.nix ];
2020-09-27 14:27:25 +02:00
2023-09-13 14:01:04 +02:00
home.packages = with pkgs; [ fh ncurses ];
2020-09-27 14:27:25 +02:00
2022-02-08 00:02:44 +01:00
programs.gpg.enable = true;
2020-09-27 14:27:25 +02:00
services.gpg-agent = {
enable = true;
enableSshSupport = true;
2022-01-20 17:00:17 +01:00
# use auth subkey's keygrip: gpg2 -K --with-keygrip
sshKeys = [ "3C48489F3B0FBB44E72180D4B1D7541C201C9987" ];
2020-09-27 14:27:25 +02:00
defaultCacheTtl = 600;
defaultCacheTtlSsh = 600;
pinentryFlavor = "curses";
};
programs.zsh.initExtra = ''
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh
'';
2020-09-27 14:27:25 +02:00
programs.zellij.enableZshIntegration = lib.mkForce false;
2023-09-30 02:36:46 +02:00
programs.ssh.enable = true;
2022-02-08 00:02:44 +01:00
programs.git.defaultProfile = "private";
2020-09-27 14:27:25 +02:00
xdg.configFile."nixpkgs/config.nix".text = ''
{
allowUnfree = true;
}
'';
home.stateVersion = "23.05";
2020-09-27 14:27:25 +02:00
}