Compare commits

...

2 commits

3 changed files with 15 additions and 4 deletions

View file

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

View file

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

View file

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