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;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
agenix.nixosModules.default
|
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 {
|
jellyfin = nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
in {
|
in {
|
||||||
options.services.vm_forgejo = {
|
options.services.vm_forgejo = {
|
||||||
enable = lib.mkEnableOption "Enable minimal config";
|
enable = lib.mkEnableOption "Enable minimal config";
|
||||||
db_ip = lib.mkOption {
|
pgsql_ip = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "forgejo database IP address";
|
description = "forgejo database IP address";
|
||||||
};
|
};
|
||||||
|
@ -26,7 +26,7 @@ in {
|
||||||
database = {
|
database = {
|
||||||
createDatabase = false;
|
createDatabase = false;
|
||||||
type = "postgres";
|
type = "postgres";
|
||||||
host = "${cfg.db_ip}";
|
host = "${cfg.pgsql_ip}";
|
||||||
name = "gitea";
|
name = "gitea";
|
||||||
user = "gitea";
|
user = "gitea";
|
||||||
passwordFile = "/run/secrets/forgejo/forgejo-dbpass";
|
passwordFile = "/run/secrets/forgejo/forgejo-dbpass";
|
||||||
|
|
Loading…
Add table
Reference in a new issue