summaryrefslogtreecommitdiff
path: root/modules/users.nix
diff options
context:
space:
mode:
authorKleidi Bujari <mail@4kb.net>2025-04-02 21:59:20 -0400
committerKleidi Bujari <mail@4kb.net>2025-04-02 21:59:20 -0400
commit09c2b6de63a6ff35348fcb2c2eb57b974f0a8a52 (patch)
treebd8f1d3a51f12cd98764ae572b00f0b32de62644 /modules/users.nix
parentb1738c105de3bc0ba7cd27f68c9eb146439a0964 (diff)
downloaddepot-09c2b6de63a6ff35348fcb2c2eb57b974f0a8a52.tar.gz
depot-09c2b6de63a6ff35348fcb2c2eb57b974f0a8a52.tar.bz2
depot-09c2b6de63a6ff35348fcb2c2eb57b974f0a8a52.zip
automate project structure
Diffstat (limited to 'modules/users.nix')
-rw-r--r--modules/users.nix48
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;
+ };
+}