2021-07-29 20:21:51 +00:00
|
|
|
{ pkgs, config, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
users.users.alexander = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [ "wheel" "audio" "video" "kvm" "input" "libvirtd" ];
|
|
|
|
hashedPassword = "$5$i4aZuQ/WXP.rFOc$lCzDqbrVsqBQt5954O.3bFPknD0jn27MmqzmE4DIAEC";
|
|
|
|
shell = pkgs.zsh;
|
|
|
|
useDefaultShell = false;
|
|
|
|
uid = 1000;
|
|
|
|
isSystemUser = false;
|
|
|
|
};
|
|
|
|
|
2021-08-04 17:07:42 +00:00
|
|
|
system.singleUser = "alexander";
|
|
|
|
|
2021-07-29 20:21:51 +00:00
|
|
|
# Activate gpg
|
|
|
|
programs.gnupg.agent.enable = true;
|
2021-08-04 17:07:42 +00:00
|
|
|
|
|
|
|
# No need to use users."${system.singleUser}" as we already know it
|
2021-07-29 20:21:51 +00:00
|
|
|
home-manager.users.alexander = {
|
2021-08-04 17:07:42 +00:00
|
|
|
# TODO: Move into a generic
|
2021-07-29 20:21:51 +00:00
|
|
|
pam.sessionVariables = {
|
|
|
|
NIXOS_CONFIG = "\${HOME}/Development/Personal/nixos-config/${config.networking.hostName}.nix";
|
|
|
|
};
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
|
|
|
|
programs.ssh = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = ''
|
|
|
|
IdentityFile ~/.ssh/gitea_papatutuwawa
|
|
|
|
|
|
|
|
Host git.polynom.me
|
|
|
|
HostName git.polynom.me
|
|
|
|
User git
|
|
|
|
IdentityFile ~/.ssh/gitea_papatutuwawa
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
services.gpg-agent = {
|
|
|
|
enable = true;
|
|
|
|
pinentryFlavor = "gnome3";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|