summaryrefslogtreecommitdiff
path: root/nixos/modules/homelab/dev
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-09-06 14:48:44 -0400
committertriethyl <triethylammonium@pm.me>2025-09-06 14:48:44 -0400
commit99f52a2a765e1097fab4d6fa73e93fcb283287c2 (patch)
treecea40438aca6eae793c589564e3a4180d66c7097 /nixos/modules/homelab/dev
parent6c15c64f54280e7dd4549608ccc96509cdd76f32 (diff)
homelab: added caddy and more
Diffstat (limited to 'nixos/modules/homelab/dev')
-rw-r--r--nixos/modules/homelab/dev/default.nix5
-rw-r--r--nixos/modules/homelab/dev/git.nix18
2 files changed, 23 insertions, 0 deletions
diff --git a/nixos/modules/homelab/dev/default.nix b/nixos/modules/homelab/dev/default.nix
new file mode 100644
index 0000000..6add50f
--- /dev/null
+++ b/nixos/modules/homelab/dev/default.nix
@@ -0,0 +1,5 @@
+{...}: {
+ imports = [
+ ./git.nix
+ ];
+}
diff --git a/nixos/modules/homelab/dev/git.nix b/nixos/modules/homelab/dev/git.nix
new file mode 100644
index 0000000..759a4c1
--- /dev/null
+++ b/nixos/modules/homelab/dev/git.nix
@@ -0,0 +1,18 @@
+{config, lib, pkgs, ...}: let
+ cfg = config.homelab.dev.git;
+in {
+ options.homelab.dev.git = {
+ enable = lib.mkEnableOption "git";
+ };
+ config = lib.mkIf cfg.enable {
+ users.users."git" = {
+ isSystemUser = true;
+ };
+ services.gitolite = {
+ enable = true;
+ user = "git";
+ adminPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMcc7hXixElOgv87LlY1LgCQ9oOT6Lj66wjCh1uRqpQt culsans@nzxt-desktop";
+ dataDir = "/srv/git";
+ };
+ };
+}