This commit is contained in:
parent
dbdb2036bf
commit
f16b30710a
2 changed files with 21 additions and 5 deletions
22
flake.nix
22
flake.nix
|
@ -105,16 +105,32 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
template = nixpkgs.lib.nixosSystem {
|
||||
forgejo = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
agenix.nixosModules.default
|
||||
"${inputs.self}/systems/minimalVMConfig.nix"
|
||||
"${inputs.nixpkgs}/nixos/modules/virtualisation/proxmox-lxc.nix"
|
||||
"${inputs.self}/systems/minimalLXCConfig.nix"
|
||||
"${inputs.self}/services"
|
||||
{
|
||||
networking.hostName = "nixos";
|
||||
networking.hostName = "forgejo";
|
||||
services.vm_forgejo = {
|
||||
enable = true;
|
||||
pgsql_ip = pgsql_host;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
# template = nixpkgs.lib.nixosSystem {
|
||||
# inherit system;
|
||||
# modules = [
|
||||
# agenix.nixosModules.default
|
||||
# "${inputs.self}/systems/minimalVMConfig.nix"
|
||||
# {
|
||||
# networking.hostName = "nixos";
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
jellyfin = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
in {
|
||||
options.services.vm_forgejo = {
|
||||
enable = lib.mkEnableOption "Enable minimal config";
|
||||
db_ip = lib.mkOption {
|
||||
pgsql_ip = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "forgejo database IP address";
|
||||
};
|
||||
|
@ -26,7 +26,7 @@ in {
|
|||
database = {
|
||||
createDatabase = false;
|
||||
type = "postgres";
|
||||
host = "${cfg.db_ip}";
|
||||
host = "${cfg.pgsql_ip}";
|
||||
name = "gitea";
|
||||
user = "gitea";
|
||||
passwordFile = "/run/secrets/forgejo/forgejo-dbpass";
|
||||
|
|
Loading…
Add table
Reference in a new issue