summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/homelab/core/caddy.nix3
-rw-r--r--nixos/modules/homelab/dev/git.nix3
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 { } {