summaryrefslogtreecommitdiff
path: root/users/gkleen
diff options
context:
space:
mode:
Diffstat (limited to 'users/gkleen')
-rw-r--r--users/gkleen/authorized-keys/gkleen-sif.pub1
-rw-r--r--users/gkleen/default.nix46
2 files changed, 47 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..7cf00b89
--- /dev/null
+++ b/users/gkleen/default.nix
@@ -0,0 +1,46 @@
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 createHome = true;
11 home = "/home/${userName}";
12 shell = "${pkgs.zsh}/bin/zsh";
13 isNormalUser = true;
14 openssh.authorizedKeys.keyFiles = let dir = ./authorized-keys; in lib.mapAttrsToList (n: _: dir + "/${n}") (builtins.readDir dir);
15 hashedPassword = "$6$rounds=500000$dOMgCU7DAk$yQFYGOURTEt12387LIYBnFKSWmtwXMUk1LJWnV0m7OFt.y2TnxQn2abdGA5dhwG9EmMB5wZGXf4J5F71c746C/";
16 };
17
18 home-manager.users.${userName} = {
19 programs = {
20 git = {
21 enable = true;
22 userEmail = "gkleen@yggdrasil.li";
23 userName = "Gregor Kleen";
24 delta.enable = true;
25 extraConfig = {
26 pull.rebase = false;
27 submodule.recurse = true;
28 };
29 };
30
31 ssh = {
32 enable = true;
33 controlMaster = "auto";
34 controlPersist = "30m";
35 serverAliveInterval = 6;
36 serverAliveCountMax = 10;
37 hashKnownHosts = true;
38 extraConfig = ''
39 IdentitiesOnly true
40 '';
41 };
42
43 gpg.enable = true;
44 };
45 };
46}