From 78933271368eed26d75576d5f15a68f3a8692ac1 Mon Sep 17 00:00:00 2001 From: Michael Huebner Date: Mon, 16 Jun 2025 12:36:36 +0200 Subject: [PATCH] Test custom copy --- git_system.nix | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/git_system.nix b/git_system.nix index 9501d9e..0ead6bf 100644 --- a/git_system.nix +++ b/git_system.nix @@ -78,20 +78,18 @@ in file = "forgejo_backup"; backupDir = "/backups"; }; - # package = pkgs.forgejo.overrideAttrs ( - # prev: { - # postInstall = builtins.concatStringsSep "\n" [ - # prev.postInstall - # '' - # chmod -R u+w $data/templates/custom/ - # cp ${./home.tmpl} $data/templates/custom/ - # chmod -R u-w $data/templates/custom/ - # '' - # ]; - # } - # ); }; + copytmpl = { + enable = true; + + path = [ pkgs.nix ]; + serviceConfig = { + Type = oneshot; + ExecStart = "cp ${./home.tmpl} /var/lib/forgejo/custom"; + } + } + openssh = { ports = [ 62 ]; settings = {