summaryrefslogtreecommitdiff
path: root/systems
diff options
context:
space:
mode:
authorLeonardo <noreply@leoflo.me>2026-03-23 18:00:48 +0100
committerLeonardo <noreply@leoflo.me>2026-03-23 18:07:53 +0100
commit44024e8e52b490e9f61f5c87a50da0dac9cf1a4f (patch)
treee64255737de59108242f5f50f2677a58759f7882 /systems
parent626351fa5a7a0cd366021edaa84e1cd794af1017 (diff)
downloadnixos-44024e8e52b490e9f61f5c87a50da0dac9cf1a4f.tar.gz
nixos-44024e8e52b490e9f61f5c87a50da0dac9cf1a4f.zip
git user
Diffstat (limited to 'systems')
-rw-r--r--systems/afrodite/default.nix26
1 files changed, 22 insertions, 4 deletions
diff --git a/systems/afrodite/default.nix b/systems/afrodite/default.nix
index 3e7adfa..3962f17 100644
--- a/systems/afrodite/default.nix
+++ b/systems/afrodite/default.nix
@@ -13,11 +13,29 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Users
- users.users.leo = {
- isNormalUser = true;
- shell = pkgs.zsh;
+ users = {
+ users = {
+ "leo" = {
+ isNormalUser = true;
+ shell = pkgs.zsh;
- extraGroups = [ "wheel" "networkmanager" ];
+ extraGroups = [ "wheel" "networkmanager" ];
+ };
+ "git" = {
+ isSystemUser = true;
+ shell = "${pkgs.git}/bin/git-shell";
+ group = "git";
+
+ home = "/var/lib/git";
+ createHome = true;
+
+ openssh.authorizedKeys.keys = [
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ/jRKQiRkGmtDRp/LniFVtl3M9r8VOaSWcyDT4Bl1R9 leo@hermes"
+ ];
+ };
+ };
+
+ groups."git" = {};
};
# Shell