This commit is contained in:
nora 2024-07-26 21:35:45 +02:00
parent ddd851ae6e
commit d925b4783e
11 changed files with 23 additions and 60 deletions

View file

@ -34,16 +34,6 @@
zramSwap.enable = true;
services.openssh.enable = true;
# By default, Colmena will replace unknown remote profile
# (unknown means the profile isn't in the nix store on the
# host running Colmena) during apply (with the default goal,
# boot, and switch).
# If you share a hive with others, or use multiple machines,
# and are not careful to always commit/push/pull changes
# you can accidentaly overwrite a remote profile so in those
# scenarios you might want to change this default to false.
# deployment.replaceUnknownProfiles = true;
};
dns1 = { name, nodes, modulesPath, ... }: {
@ -112,32 +102,4 @@
ATTR{address}=="96:00:03:91:16:47", NAME="eth0"
'';
};
/*host-b = {
# Like NixOps and Morph, Colmena will attempt to connect to
# the remote host using the attribute name by default. You
# can override it like:
deployment.targetHost = "dns2.infra.noratrieb.dev";
# It's also possible to override the target SSH port.
# For further customization, use the SSH_CONFIG_FILE
# environment variable to specify a ssh_config file.
deployment.targetPort = 1234;
# Override the default for this target host
deployment.replaceUnknownProfiles = false;
# You can filter hosts by tags with --on @tag-a,@tag-b.
# In this example, you can deploy to hosts with the "web" tag using:
# colmena apply --on @web
# You can use globs in tag matching as well:
# colmena apply --on '@infra-*'
deployment.tags = [ "dns" "eu" ];
boot.loader.grub.device = "/dev/sda";
fileSystems."/" = {
device = "/dev/sda1";
fsType = "ext4";
};
};*/
}

View file

@ -6,8 +6,8 @@ let
dns1 = host "154.38.163.74" null;
dns2 = host "128.140.3.7" "2a01:4f8:c2c:d616::";
vps1 = host "184.174.32.252" null;
vps2 = host "161.97.165.1" null;
vps1 = host "161.97.165.1" null;
vps2 = host "184.174.32.252" null;
in
{
SOA = {
@ -47,20 +47,20 @@ let
];
subdomains = {
www = vps1;
www = vps2;
blog.CNAME = [ (cname "nilstrieb.github.io") ];
# apps
bisect-rustc = vps1;
cors-school = vps1 // {
subdomains.api = vps1;
bisect-rustc = vps2;
cors-school = vps2 // {
subdomains.api = vps2;
};
docker = vps1;
hugo-chat = vps1 // {
subdomains.api = vps1;
docker = vps2;
hugo-chat = vps2 // {
subdomains.api = vps2;
};
olat = vps1;
uptime = vps1;
olat = vps2;
uptime = vps2;
localhost.A = [ (a "127.0.0.1") ];

View file

@ -18,7 +18,7 @@ let
"ns2.noratrieb.dev"
];
A = [ (a "161.97.165.1") ];
A = [ (a "184.174.32.252") ];
AAAA = [ ];
subdomains = {

View file

@ -0,0 +1 @@
{ ... }: { }