diff options
Diffstat (limited to 'modules/users.nix')
| -rw-r--r-- | modules/users.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/modules/users.nix b/modules/users.nix new file mode 100644 index 0000000..f9f7df3 --- /dev/null +++ b/modules/users.nix @@ -0,0 +1,48 @@ +{ pkgs, perSystem, ... }: +let + inherit (builtins) + attrValues; + + inherit (perSystem.self) + perf-flamegraph + ; + + keys = { + t480 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEOw8YEbHsKy38JHp9W1wcxxZgWCDgnabOXccZUN5ddd"; + t1 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP7T2uWJFUu8aFZZgQusGKyEMocb2pKbHLDad2eIJus9"; + }; +in +{ + kle = { + initialHashedPassword = "$6$R4dDhaftX.vapGMd$.An36hlp3DXfkIC7bPZ0MDPo6Zvpk8JRrhy2LES.lZZj6JDa74oJkcMW3DCsIySvLJxOPXSShos0TpgJ/w0fH/"; + isNormalUser = true; + shell = pkgs.fish; + home = "/persist/usr/kle"; + createHome = true; + extraGroups = [ "wheel" "users" "networkmanager" "video" "corectrl" ]; + packages = with pkgs; [ + btop + curl + emacs + fzf + guvcview + jq + jujutsu + lynx + neovim + perf-flamegraph + ranger + ripgrep + rsync + sshfs + tree + zip + + # nix debugging + nixd + nixpkgs-fmt + ]; + + openssh.authorizedKeys.keys = attrValues keys; + }; +} |
