Compare commits

..

2 commits

3 changed files with 15 additions and 4 deletions

View file

@ -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;
};
};

View file

@ -29,6 +29,9 @@ let
"task.vscode-task"
"tyriar.sort-lines"
"yzhang.markdown-all-in-one"
"fill-labs.dependi"
"rust-lang.rust-analyzer"
"dustypomerleau.rust-syntax"
# "github.copilot-chat"
];
# Nixpkgs Extensions. These are updated whenver they get around to it.
@ -49,8 +52,8 @@ let
# The latest generally targets insiders build of vs code right now and it won't load on stable.
name = "copilot-chat";
publisher = "github";
version = "0.18.2";
sha256 = "sha256-cku6FV88jMwWoxSiMAufZy00H9Wc1XnJJDBrfWAwXPg=";
version = "0.20.1";
sha256 = "sha256-HCPUufTZdukDmvP4/90K1x6bPq281Y02RpRds0vDL3U=";
}
{
name = "remote-ssh";

View file

@ -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";