upgrading forgejo to v8
This commit is contained in:
parent
75e2605c64
commit
bfb6a8aef6
2 changed files with 10 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
{ ... }: {
|
||||
{ pkgs, ... }: {
|
||||
imports = [ ];
|
||||
|
||||
networking.hostId = "cdab8473";
|
||||
|
@ -28,7 +28,10 @@
|
|||
system.motd.networkInterfaces = [ "enp1s0" ];
|
||||
security.acme.enable = true;
|
||||
services = {
|
||||
forgejo.enable = true;
|
||||
forgejo = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.forgejo;
|
||||
};
|
||||
nginx.enable = true;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -9,6 +9,10 @@ in
|
|||
{
|
||||
options.mySystem.services.forgejo = {
|
||||
enable = mkEnableOption "Forgejo";
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.forgejo;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
@ -25,6 +29,7 @@ in
|
|||
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
package = cfg.package;
|
||||
# enable sql db dumps daily
|
||||
dump.enable = true;
|
||||
database.type = "postgres";
|
||||
|
|
Loading…
Reference in a new issue