blob: c6e7d712ade3bd4572c6d7b69b8cc931c8235fe9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ flake, lib, config, hostName, userName, pkgs, ... }:
let
haveGKleen = flake.nixosModules.accounts ? "gkleen@${hostName}";
in {
imports = with flake.nixosModules.userProfiles.${userName}; [
zsh tmux utils
];
users.users.${userName} = lib.mkIf haveGKleen {
inherit (config.users.users."gkleen") hashedPassword shell;
openssh.authorizedKeys.keyFiles = config.users.users."gkleen".openssh.authorizedKeys.keyFiles;
};
home-manager.users.${userName} = {
programs = lib.mkIf haveGKleen {
inherit (config.home-manager.users.gkleen.programs) git ssh gpg;
};
services = {
gpg-agent = {
enable = true;
enableSshSupport = true;
extraConfig = ''
pinentry-program ${pkgs.pinentry-curses}/bin/pinentry
grab
'';
};
};
};
}
|