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";
|
file = "forgejo_backup";
|
||||||
backupDir = "/backups";
|
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 = {
|
openssh = {
|
||||||
ports = [ 62 ];
|
ports = [ 62 ];
|
||||||
settings = {
|
settings = {
|
||||||
|
|
Loading…
Reference in a new issue