mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-16 17:45:14 +01:00
forgejo 2
This commit is contained in:
parent
a25b5fc2b7
commit
d02f3fb4b0
3 changed files with 91 additions and 78 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, name, ... }: {
|
{ config, ... }: {
|
||||||
age.secrets.forgejo_s3_key_secret.file = ../../secrets/forgejo_s3_key_secret.age;
|
age.secrets.forgejo_s3_key_secret.file = ../../secrets/forgejo_s3_key_secret.age;
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -42,4 +42,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.custom-backup.jobs = [{
|
||||||
|
app = "forgejo";
|
||||||
|
file = "/var/lib/forgejo/data/forgejo.db";
|
||||||
|
}];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
{
|
{
|
||||||
meta = {
|
meta =
|
||||||
|
let nixpkgs-path = (fetchTarball "https://github.com/NixOS/nixpkgs/archive/7105ae3957700a9646cc4b766f5815b23ed0c682.tar.gz"); in
|
||||||
|
{
|
||||||
# Override to pin the Nixpkgs version (recommended). This option
|
# Override to pin the Nixpkgs version (recommended). This option
|
||||||
# accepts one of the following:
|
# accepts one of the following:
|
||||||
# - A path to a Nixpkgs checkout
|
# - A path to a Nixpkgs checkout
|
||||||
# - The Nixpkgs lambda (e.g., import <nixpkgs>)
|
# - The Nixpkgs lambda (e.g., import <nixpkgs>)
|
||||||
# - An initialized Nixpkgs attribute set
|
# - An initialized Nixpkgs attribute set
|
||||||
nixpkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/7105ae3957700a9646cc4b766f5815b23ed0c682.tar.gz"); # nixos-24.11 2025-03-21
|
nixpkgs = import nixpkgs-path; # nixos-24.11 2025-03-21
|
||||||
|
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
website = import (fetchTarball "https://github.com/Noratrieb/website/archive/1e1f0be7acf6931832a53447771ed2224b1ae43d.tar.gz");
|
website = import (fetchTarball "https://github.com/Noratrieb/website/archive/1e1f0be7acf6931832a53447771ed2224b1ae43d.tar.gz");
|
||||||
|
|
@ -17,6 +19,8 @@
|
||||||
|
|
||||||
does-it-build = import (fetchTarball "https://github.com/Noratrieb/does-it-build/archive/cc4d90e7481d25c31362072484fb23f6a9473ef3.tar.gz");
|
does-it-build = import (fetchTarball "https://github.com/Noratrieb/does-it-build/archive/cc4d90e7481d25c31362072484fb23f6a9473ef3.tar.gz");
|
||||||
|
|
||||||
|
inherit nixpkgs-path;
|
||||||
|
|
||||||
networkingConfig = {
|
networkingConfig = {
|
||||||
dns1 = {
|
dns1 = {
|
||||||
publicIPv4 = "154.38.163.74";
|
publicIPv4 = "154.38.163.74";
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,14 @@
|
||||||
{ pkgs, lib, config, name, pretense, quotdd, ... }: {
|
{ pkgs, lib, config, name, pretense, quotdd, nixpkgs-path, ... }: {
|
||||||
deployment.targetHost = "${config.networking.hostName}.infra.noratrieb.dev";
|
deployment.targetHost = "${config.networking.hostName}.infra.noratrieb.dev";
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
"${builtins.fetchTarball "https://github.com/ryantm/agenix/archive/de96bd907d5fbc3b14fc33ad37d1b9a3cb15edc6.tar.gz"}/modules/age.nix" # main 2024-07-26
|
"${builtins.fetchTarball "https://github.com/ryantm/agenix/archive/de96bd907d5fbc3b14fc33ad37d1b9a3cb15edc6.tar.gz"}/modules/age.nix" # main 2024-07-26
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
nixPath = [ "nixpkgs=${nixpkgs-path}" ];
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
vim
|
vim
|
||||||
wget
|
wget
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue