From 09c2b6de63a6ff35348fcb2c2eb57b974f0a8a52 Mon Sep 17 00:00:00 2001 From: Kleidi Bujari Date: Wed, 2 Apr 2025 21:59:20 -0400 Subject: automate project structure --- modules/users.nix | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 modules/users.nix (limited to 'modules/users.nix') 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; + }; +} -- cgit v1.3.1