diff options
| author | triethyl <triethylammonium@pm.me> | 2025-10-15 08:39:28 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-10-15 08:39:28 -0400 |
| commit | 87062b75e49e3850db0d5b11ac4ed6b08ca16d4b (patch) | |
| tree | d8b4960516576394a68d45c8bf99ea4bb7aec31f /nixos | |
| parent | a9fc9cf8832c471854bb7fa61137a5272f1076b6 (diff) | |
homelab: small git changes
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/modules/homelab/core/caddy.nix | 3 | ||||
| -rw-r--r-- | nixos/modules/homelab/dev/git.nix | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/nixos/modules/homelab/core/caddy.nix b/nixos/modules/homelab/core/caddy.nix index 828aa10..5904388 100644 --- a/nixos/modules/homelab/core/caddy.nix +++ b/nixos/modules/homelab/core/caddy.nix @@ -10,7 +10,8 @@ in { email = "culsans@vivaldi.net"; virtualHosts = { "culsans.site".extraConfig = '' - respond "Hello" + root * /srv/www/culsans.site + file_server ''; }; }; diff --git a/nixos/modules/homelab/dev/git.nix b/nixos/modules/homelab/dev/git.nix index 464b501..774e052 100644 --- a/nixos/modules/homelab/dev/git.nix +++ b/nixos/modules/homelab/dev/git.nix @@ -21,7 +21,7 @@ in { users.users."git" = { isSystemUser = true; description = lib.mkForce "git user"; - home = "/srv/git"; + home = lib.mkForce "/srv/git"; extraGroups = [ "git" ]; }; services.gitolite = { @@ -29,6 +29,7 @@ in { user = "git"; group = "git"; adminPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMcc7hXixElOgv87LlY1LgCQ9oOT6Lj66wjCh1uRqpQt culsans@nzxt-desktop"; + extraGitoliteRc = "$RC{GIT_CONFIG_KEYS} = '.*';"; dataDir = "/srv/git"; }; environment.etc."cgitrc".source = pkgs.writeText "cgitrc" (lib.generators.toKeyValue { } { |
