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 = [ ];
|
imports = [ ];
|
||||||
|
|
||||||
networking.hostId = "cdab8473";
|
networking.hostId = "cdab8473";
|
||||||
|
@ -28,7 +28,10 @@
|
||||||
system.motd.networkInterfaces = [ "enp1s0" ];
|
system.motd.networkInterfaces = [ "enp1s0" ];
|
||||||
security.acme.enable = true;
|
security.acme.enable = true;
|
||||||
services = {
|
services = {
|
||||||
forgejo.enable = true;
|
forgejo = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.unstable.forgejo;
|
||||||
|
};
|
||||||
nginx.enable = true;
|
nginx.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -9,6 +9,10 @@ in
|
||||||
{
|
{
|
||||||
options.mySystem.services.forgejo = {
|
options.mySystem.services.forgejo = {
|
||||||
enable = mkEnableOption "Forgejo";
|
enable = mkEnableOption "Forgejo";
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.forgejo;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
@ -25,6 +29,7 @@ in
|
||||||
|
|
||||||
services.forgejo = {
|
services.forgejo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = cfg.package;
|
||||||
# enable sql db dumps daily
|
# enable sql db dumps daily
|
||||||
dump.enable = true;
|
dump.enable = true;
|
||||||
database.type = "postgres";
|
database.type = "postgres";
|
||||||
|
|
Loading…
Reference in a new issue