moved forgejo from cirrus to cirrostratus for more disk space.
This commit is contained in:
parent
14ac8a86ad
commit
2f3c84ca71
7 changed files with 24 additions and 6 deletions
|
|
@ -17,6 +17,7 @@ in {
|
||||||
DOMAIN = "git.venberg.xyz";
|
DOMAIN = "git.venberg.xyz";
|
||||||
ROOT_URL = "https://${srv.DOMAIN}";
|
ROOT_URL = "https://${srv.DOMAIN}";
|
||||||
HTTP_PORT = 3000;
|
HTTP_PORT = 3000;
|
||||||
|
SSH_PORT = 2222;
|
||||||
ENABLE_GZIP = true;
|
ENABLE_GZIP = true;
|
||||||
};
|
};
|
||||||
service.DISABLE_REGISTRATION = true;
|
service.DISABLE_REGISTRATION = true;
|
||||||
|
|
@ -31,6 +32,8 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.openssh.ports = [srv.SSH_PORT];
|
||||||
|
|
||||||
services.nginx.virtualHosts.${srv.DOMAIN} = {
|
services.nginx.virtualHosts.${srv.DOMAIN} = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
@ -44,6 +47,7 @@ in {
|
||||||
"/var/lib/forgejo/custom"
|
"/var/lib/forgejo/custom"
|
||||||
"/var/lib/forgejo/data"
|
"/var/lib/forgejo/data"
|
||||||
"/var/lib/forgejo/repositories"
|
"/var/lib/forgejo/repositories"
|
||||||
|
"/var/lib/forgejo/.ssh"
|
||||||
];
|
];
|
||||||
preBackupCommands = "systemctl stop forgejo.service";
|
preBackupCommands = "systemctl stop forgejo.service";
|
||||||
postBackupCommands = "systemctl start forgejo.service";
|
postBackupCommands = "systemctl start forgejo.service";
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,12 @@
|
||||||
];
|
];
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.PermitRootLogin = "prohibit-password";
|
ports = [22];
|
||||||
settings.PasswordAuthentication = false;
|
openFirewall = true;
|
||||||
|
settings = {
|
||||||
|
PermitRootLogin = "prohibit-password";
|
||||||
|
PasswordAuthentication = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
# so we dont have to set TERM everytime we ssh in.
|
# so we dont have to set TERM everytime we ssh in.
|
||||||
environment.systemPackages = [pkgs.kitty.terminfo];
|
environment.systemPackages = [pkgs.kitty.terminfo];
|
||||||
|
|
|
||||||
|
|
@ -45,13 +45,13 @@
|
||||||
|
|
||||||
#My nvim config.
|
#My nvim config.
|
||||||
nvim-config = {
|
nvim-config = {
|
||||||
url = "git+ssh://forgejo@git.venberg.xyz/Gabe/nvim-config.git?shallow=1";
|
url = "git+ssh://forgejo@git.venberg.xyz:2222/Gabe/nvim-config.git?shallow=1";
|
||||||
# url = "git+file:///home/gabe/nvim-config";
|
# url = "git+file:///home/gabe/nvim-config";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
nix-secrets = {
|
nix-secrets = {
|
||||||
url = "git+ssh://forgejo@git.venberg.xyz/Gabe/nix-secrets.git?shallow=1";
|
url = "git+ssh://forgejo@git.venberg.xyz:2222/Gabe/nix-secrets.git?shallow=1";
|
||||||
# url = "git+https://git.venberg.xyz/Gabe/nix-secrets.git?shallow=1";
|
# url = "git+https://git.venberg.xyz/Gabe/nix-secrets.git?shallow=1";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
../../configs/nixos/nginx-static.nix
|
../../configs/nixos/nginx-static.nix
|
||||||
../../configs/nixos/immich.nix
|
../../configs/nixos/immich.nix
|
||||||
../../configs/nixos/homebox.nix
|
../../configs/nixos/homebox.nix
|
||||||
|
../../configs/nixos/forgejo.nix
|
||||||
({
|
({
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,16 @@
|
||||||
mountpoint = "/storage";
|
mountpoint = "/storage";
|
||||||
};
|
};
|
||||||
datasets = {
|
datasets = {
|
||||||
|
# This does not reflect reality,
|
||||||
|
# I was stupid and didnt put /var/lib on zfs,
|
||||||
|
# so now I just have datasets for a few folders in it.
|
||||||
|
lib = {
|
||||||
|
type = "zfs_fs";
|
||||||
|
options = {
|
||||||
|
compression = "zstd";
|
||||||
|
mountpoint = "/var/lib";
|
||||||
|
};
|
||||||
|
};
|
||||||
postgres = {
|
postgres = {
|
||||||
type = "zfs_fs";
|
type = "zfs_fs";
|
||||||
options = {
|
options = {
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
../../configs/nixos/sshd.nix
|
../../configs/nixos/sshd.nix
|
||||||
../../configs/nixos/secrets.nix
|
../../configs/nixos/secrets.nix
|
||||||
../../configs/nixos/radicale.nix
|
../../configs/nixos/radicale.nix
|
||||||
../../configs/nixos/forgejo.nix
|
|
||||||
../../configs/nixos/homepage.nix
|
../../configs/nixos/homepage.nix
|
||||||
../../configs/nixos/freshrss.nix
|
../../configs/nixos/freshrss.nix
|
||||||
../../configs/nixos/soju.nix
|
../../configs/nixos/soju.nix
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,7 @@
|
||||||
paths = null;
|
paths = null;
|
||||||
timerConfig = timer;
|
timerConfig = timer;
|
||||||
pruneOpts = pruneOpts;
|
pruneOpts = pruneOpts;
|
||||||
user = "root";
|
user = "restic";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
(
|
(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue