mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2025-12-14 15:48:21 +01:00
Akkoma on vps
This commit is contained in:
parent
4d4bdbefec
commit
acd2192b23
6 changed files with 342 additions and 41 deletions
|
|
@ -3,14 +3,15 @@ let
|
|||
rootDomain = "lgmrszd.xyz";
|
||||
gtnhDomain = "gtnh.${rootDomain}";
|
||||
discDomain = "discourse.testdrive.${rootDomain}";
|
||||
akkoDomain = "akko.testdrive.${rootDomain}";
|
||||
iceDomain = "ice.testdrive.${rootDomain}";
|
||||
akkoDomain = "akko429164.testdrive.${rootDomain}";
|
||||
iceDomain = "ice758549.testdrive.${rootDomain}";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./akkotest.nix
|
||||
|
||||
(fetchTarball { url = "https://github.com/cariandrum22/nixos-vscode-server/tarball/support-for-new-dir-structure-of-vscode-server"; sha256 = "1sp4h0nb7dh7mcm8vdflihv76yz8azf5zifkcbxhq7xz48c8k5pd"; })
|
||||
|
||||
];
|
||||
|
||||
|
||||
|
|
@ -55,39 +56,6 @@ in
|
|||
|
||||
};
|
||||
|
||||
containers.akkotest = let secretpath = "${config.sops.secrets.example_key.path}"; in {
|
||||
ephemeral = true;
|
||||
privateNetwork = true;
|
||||
hostAddress = "192.168.100.10";
|
||||
localAddress = "192.168.100.11";
|
||||
bindMounts."${secretpath}".isReadOnly = true;
|
||||
specialArgs = {inherit secretpath;};
|
||||
|
||||
config =
|
||||
{ config, pkgs, secretpath, ... }:
|
||||
{
|
||||
users = {
|
||||
users."akkoma" = {
|
||||
description = "Akkoma user";
|
||||
group = "akkoma";
|
||||
isSystemUser = true;
|
||||
uid = 1234;
|
||||
};
|
||||
groups."akkoma" = { gid = 1234; };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
users = {
|
||||
users."akkoma" = {
|
||||
description = "Fake Akkoma user to set up secrets permissions";
|
||||
group = "akkoma";
|
||||
isSystemUser = true;
|
||||
uid = 1234;
|
||||
};
|
||||
groups."akkoma" = { gid = 1234; };
|
||||
};
|
||||
|
||||
sops = {
|
||||
defaultSopsFile = ../../secrets/secrets.yaml;
|
||||
defaultSopsFormat = "yaml";
|
||||
|
|
@ -128,11 +96,11 @@ in
|
|||
useACMEHost = "${rootDomain}";
|
||||
root = "/var/www/todo";
|
||||
};
|
||||
virtualHosts.${akkoDomain} = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "${rootDomain}";
|
||||
root = "/var/www/todo";
|
||||
};
|
||||
# virtualHosts.${akkoDomain} = {
|
||||
# forceSSL = true;
|
||||
# useACMEHost = "${rootDomain}";
|
||||
# root = "/var/www/todo";
|
||||
# };
|
||||
virtualHosts.${iceDomain} = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "${rootDomain}";
|
||||
|
|
@ -149,6 +117,7 @@ in
|
|||
environmentFile = config.sops.secrets.porkbun.path;
|
||||
extraDomainNames = [
|
||||
"*.${rootDomain}"
|
||||
"*.testdrive.${rootDomain}"
|
||||
# gtnhDomain
|
||||
# akkoDomain
|
||||
# iceDomain
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue