# SPDX-FileCopyrightText: V # SPDX-FileCopyrightText: edef # SPDX-License-Identifier: OSL-3.0 { pkgs, ... }: let root = "/var/lib/git"; in { users.users.git = { isSystemUser = true; group = "git"; # This lets us address remote repositories like `trieste:foo`. home = root; # TODO(V): Remove the override once https://github.com/NixOS/nixpkgs/pull/128062 has made its way into stable. shell = pkgs.git // { shellPath = "/bin/git-shell"; }; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDXELHAMjO/BzoBFgTW9ln3td2WnXw9VGF3zpMBiswsx git@vityaz" ]; }; users.groups.git = {}; systemd.tmpfiles.rules = [ "d ${root} 0750 git git" ]; declarative.git.repositories.basin = {}; }