diff options
Diffstat (limited to 'users/gkleen')
-rw-r--r-- | users/gkleen/authorized-keys/gkleen-sif.pub | 1 | ||||
-rw-r--r-- | users/gkleen/default.nix | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/users/gkleen/authorized-keys/gkleen-sif.pub b/users/gkleen/authorized-keys/gkleen-sif.pub new file mode 100644 index 00000000..e9aaf215 --- /dev/null +++ b/users/gkleen/authorized-keys/gkleen-sif.pub | |||
@@ -0,0 +1 @@ | |||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKrHPERae+OUTNOzNf9d2767ljFCm5hgmQw48Dj4RrlU gkleen@sif.midgard.yggdrasil | |||
diff --git a/users/gkleen/default.nix b/users/gkleen/default.nix new file mode 100644 index 00000000..c5ec7025 --- /dev/null +++ b/users/gkleen/default.nix | |||
@@ -0,0 +1,48 @@ | |||
1 | { flake, userName, pkgs, customUtils, lib, ... }: | ||
2 | { | ||
3 | imports = with flake.nixosModules.userProfiles.${userName}; [ | ||
4 | zsh tmux utils direnv | ||
5 | ]; | ||
6 | |||
7 | users.users.${userName} = { | ||
8 | description = "Gregor Kleen"; | ||
9 | extraGroups = [ "wheel" "networkmanager" "lp" "dialout" "audio" "video" "xmpp" "mail" "ssh" "vboxusers" "libvirtd" "wireshark" "games"]; | ||
10 | group = "users"; | ||
11 | uid = 1000; | ||
12 | createHome = true; | ||
13 | home = "/home/${userName}"; | ||
14 | shell = "${pkgs.zsh}/bin/zsh"; | ||
15 | isNormalUser = true; | ||
16 | openssh.authorizedKeys.keyFiles = let dir = ./authorized-keys; in lib.mapAttrsToList (n: _: dir + "/${n}") (builtins.readDir dir); | ||
17 | hashedPassword = "$6$rounds=500000$dOMgCU7DAk$yQFYGOURTEt12387LIYBnFKSWmtwXMUk1LJWnV0m7OFt.y2TnxQn2abdGA5dhwG9EmMB5wZGXf4J5F71c746C/"; | ||
18 | }; | ||
19 | |||
20 | home-manager.users.${userName} = { | ||
21 | programs = { | ||
22 | git = { | ||
23 | enable = true; | ||
24 | userEmail = "gkleen@yggdrasil.li"; | ||
25 | userName = "Gregor Kleen"; | ||
26 | delta.enable = true; | ||
27 | extraConfig = { | ||
28 | pull.rebase = false; | ||
29 | submodule.recurse = true; | ||
30 | }; | ||
31 | }; | ||
32 | |||
33 | ssh = { | ||
34 | enable = true; | ||
35 | controlMaster = "auto"; | ||
36 | controlPersist = "30m"; | ||
37 | serverAliveInterval = 6; | ||
38 | serverAliveCountMax = 10; | ||
39 | hashKnownHosts = true; | ||
40 | extraConfig = '' | ||
41 | IdentitiesOnly true | ||
42 | ''; | ||
43 | }; | ||
44 | |||
45 | gpg.enable = true; | ||
46 | }; | ||
47 | }; | ||
48 | } | ||