Test custom copy
This commit is contained in:
parent
60eb69b118
commit
7893327136
1 changed files with 10 additions and 12 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue