diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-01-03 15:24:44 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-01-03 16:21:35 +0100 |
commit | 6771b74180157e408edba8071cdcc5f49e8f32b2 (patch) | |
tree | 430f069cb0e70d4a3754738389a942ee5744ea62 /users | |
parent | b34c74bf38ff1bf073773f03705912e3becc9ef5 (diff) | |
download | nixos-6771b74180157e408edba8071cdcc5f49e8f32b2.tar nixos-6771b74180157e408edba8071cdcc5f49e8f32b2.tar.gz nixos-6771b74180157e408edba8071cdcc5f49e8f32b2.tar.bz2 nixos-6771b74180157e408edba8071cdcc5f49e8f32b2.tar.xz nixos-6771b74180157e408edba8071cdcc5f49e8f32b2.zip |
home-manager tweaks
Diffstat (limited to 'users')
-rw-r--r-- | users/root.nix | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/users/root.nix b/users/root.nix index c6e7d712..24a5ae94 100644 --- a/users/root.nix +++ b/users/root.nix | |||
@@ -12,8 +12,30 @@ in { | |||
12 | }; | 12 | }; |
13 | 13 | ||
14 | home-manager.users.${userName} = { | 14 | home-manager.users.${userName} = { |
15 | programs = lib.mkIf haveGKleen { | 15 | programs = { |
16 | inherit (config.home-manager.users.gkleen.programs) git ssh gpg; | 16 | git = { |
17 | enable = true; | ||
18 | userEmail = "gkleen@yggdrasil.li"; | ||
19 | userName = "Gregor Kleen"; | ||
20 | delta.enable = true; | ||
21 | extraConfig = { | ||
22 | pull.rebase = false; | ||
23 | }; | ||
24 | }; | ||
25 | |||
26 | ssh = { | ||
27 | enable = true; | ||
28 | controlMaster = "auto"; | ||
29 | controlPersist = "30m"; | ||
30 | serverAliveInterval = 6; | ||
31 | hashKnownHosts = true; | ||
32 | extraConfig = '' | ||
33 | IdentitiesOnly true | ||
34 | ServerAliveCountMax 10 | ||
35 | ''; | ||
36 | }; | ||
37 | |||
38 | gpg.enable = true; | ||
17 | }; | 39 | }; |
18 | 40 | ||
19 | services = { | 41 | services = { |