From 4a3d2a8ddaf4e546df360656bc54b2947bdb890b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 3 Jan 2021 00:55:29 +0100 Subject: gkleen@sif: import --- users/gkleen/default.nix | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'users/gkleen') diff --git a/users/gkleen/default.nix b/users/gkleen/default.nix index f74701a5..26f7a1d4 100644 --- a/users/gkleen/default.nix +++ b/users/gkleen/default.nix @@ -1,5 +1,9 @@ -{ userName, pkgs, customUtils, lib, ... }: +{ flake, userName, pkgs, customUtils, lib, ... }: { + imports = with flake.nixosModules.userProfiles.${userName}; [ + zsh tmux utils + ]; + users.users.${userName} = { description = "Gregor Kleen"; extraGroups = [ "wheel" "networkmanager" "lp" "dialout" "audio" "video" "xmpp" "mail" "ssh" "vboxusers" "libvirtd" "wireshark" "games"]; @@ -12,4 +16,32 @@ openssh.authorizedKeys.keyFiles = lib.attrValues (customUtils.recImport rec { dir = ./authorized-keys; _import = name: _base: dir + "/${name}"; }); hashedPassword = "$6$rounds=500000$dOMgCU7DAk$yQFYGOURTEt12387LIYBnFKSWmtwXMUk1LJWnV0m7OFt.y2TnxQn2abdGA5dhwG9EmMB5wZGXf4J5F71c746C/"; }; + + home-manager.users.${userName} = { + programs = { + git = { + enable = true; + userEmail = "gkleen@yggdrasil.li"; + userName = "Gregor Kleen"; + delta.enable = true; + extraConfig = { + pull.rebase = false; + }; + }; + + ssh = { + enable = true; + controlMaster = "auto"; + controlPersist = "30m"; + serverAliveInterval = 6; + hashKnownHosts = true; + extraConfig = '' + IdentitiesOnly true + ServerAliveCountMax 10 + ''; + }; + + gpg.enable = true; + }; + }; } -- cgit v1.2.3