diff options
| author | Leonardo <noreply@leoflo.me> | 2026-03-23 18:00:48 +0100 |
|---|---|---|
| committer | Leonardo <noreply@leoflo.me> | 2026-03-23 18:07:53 +0100 |
| commit | 44024e8e52b490e9f61f5c87a50da0dac9cf1a4f (patch) | |
| tree | e64255737de59108242f5f50f2677a58759f7882 /systems/afrodite/default.nix | |
| parent | 626351fa5a7a0cd366021edaa84e1cd794af1017 (diff) | |
| download | nixos-44024e8e52b490e9f61f5c87a50da0dac9cf1a4f.tar.gz nixos-44024e8e52b490e9f61f5c87a50da0dac9cf1a4f.zip | |
git user
Diffstat (limited to 'systems/afrodite/default.nix')
| -rw-r--r-- | systems/afrodite/default.nix | 26 |
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 |
