Commit files for public release
All checks were successful
CI / build (push) Successful in 13m53s

This commit is contained in:
Fabian Hauser 2024-10-02 16:52:04 +03:00
commit fef2377502
174 changed files with 7423 additions and 0 deletions

29
deploy/README.md Normal file
View file

@ -0,0 +1,29 @@
# Deployment
Note that you have to be connected to the `vpn.qo.is`
(or execute the deployment from a host that is in the `backplane.net.qo.is` overlay network)
and that you need to have SSH root access to the target machines.
#### Deploy to all hosts
```bash
nix run .#deploy-qois
```
#### Deploy to selected target hosts
```bash
nix run .#deploy-qois .#<hostname> .#<hostname2>
# e.g.
nix run .#deploy-qois .#fulberg
```
#### Deploy with extended timeouts (sometimes required for slow APU devices)
```bash
nix run .#deploy-qois .#calanda -- --confirm-timeout 600 --activation-timeout 600
```

12
deploy/default.nix Normal file
View file

@ -0,0 +1,12 @@
{
deployPkgs,
pkgs,
self,
...
}@params:
with pkgs.lib;
pipe ./. [
self.lib.loadSubmodulesFrom
(map (f: (import f params)))
(foldl recursiveUpdate { })
]

View file

@ -0,0 +1,17 @@
{
deployPkgs,
pkgs,
self,
system,
...
}:
let
domain = "docs-ops.qo.is";
in
{
nodes.lindberg-webapps.profiles."${domain}" = {
sshUser = "nginx-${domain}";
path = deployPkgs.deploy-rs.lib.activate.noop self.packages.${system}.docs;
profilePath = "/var/lib/nginx-${domain}/root";
};
}

20
deploy/system/default.nix Normal file
View file

@ -0,0 +1,20 @@
{
deployPkgs,
pkgs,
self,
system,
...
}:
{
nodes = pkgs.lib.mapAttrs (host: config: {
hostname = "${host}.backplane.net.qo.is";
profiles.system = {
sshUser = "root";
user = "root";
activationTimeout = 420;
confirmTimeout = 120;
path = deployPkgs.deploy-rs.lib.activate.nixos config;
};
}) self.nixosConfigurations;
}