diff options
| author | andromeda <andromeda@lenovo> | 2026-05-06 21:54:48 +0200 |
|---|---|---|
| committer | andromeda <andromeda@lenovo> | 2026-05-06 21:54:48 +0200 |
| commit | e1ee847e4c3e6ef1db8954ad78329f13ed2f9af6 (patch) | |
| tree | 0327abda06360d05801a515c0c731a2f2c715218 /galaxious/configuration.nix | |
| parent | f3d4fcebc2047ac928e519fb36d29b28bde6e70d (diff) | |
git user
Diffstat (limited to 'galaxious/configuration.nix')
| -rw-r--r-- | galaxious/configuration.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/galaxious/configuration.nix b/galaxious/configuration.nix index 0c63ee0..76914cb 100644 --- a/galaxious/configuration.nix +++ b/galaxious/configuration.nix @@ -71,8 +71,15 @@ in { system.stateVersion = "25.11"; users = { mutableUsers = false; - users.root = { - openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJy2VD362wUcu0lKj2d6OIU8dbAna0Lu/NaAYIj8gdIA andromeda@lenovo" ]; + users = { + git = { + isSystemUser = true; + group = "git"; + home = "/var/lib/git"; + openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJy2VD362wUcu0lKj2d6OIU8dbAna0Lu/NaAYIj8gdIA andromeda@lenovo" ]; + shell = "${pkgs.git}/bin/git-shell"; + }; + root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJy2VD362wUcu0lKj2d6OIU8dbAna0Lu/NaAYIj8gdIA andromeda@lenovo" ]; }; }; zramSwap.enable = true; |
