Skip to content

Commit

Permalink
Add collab-vr machine
Browse files Browse the repository at this point in the history
  • Loading branch information
brokenpylons committed Feb 14, 2025
1 parent 0772798 commit 1d273e6
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
{nixpkgs.overlays = [collab-dev.overlays.default];}
collab-dev.nixosModules.default
];
"collab-vr.l" = mkSystem "collab-vr.l" [
{nixpkgs.overlays = [collab-dev.overlays.default];}
collab-dev.nixosModules.default
];
"collab-catalog-dev.l" = mkSystem "collab-catalog-dev.l" [
{nixpkgs.overlays = [collab-dev.overlays.default];}
collab-dev.nixosModules.default
Expand Down
25 changes: 25 additions & 0 deletions infra/infra.nix
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@
backing = "minimal-base-v3";
capacity = unit.GiB 8;
}
{
name = "collab-vr";
backing = "minimal-base-v3";
capacity = unit.GiB 8;
}
];
};
};
Expand Down Expand Up @@ -681,6 +686,26 @@
}
];
};
"collab-vr" = {
start = true;
autoStart = true;
memory = unit.GiB 1;
vcpu = 1;
disks = [
{
device = "vda";
pool = "alternative";
volume = "collab-vr";
}
];
networkInterfaces = [
{
network = "private-network";
hostname = "collab-vr.l";
address = "10.17.3.218";
}
];
};
"gc" = {
start = true;
autoStart = true;
Expand Down
22 changes: 22 additions & 0 deletions machines/collab-vr.l/configuration.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{config, pkgs, ...}:

{
imports = [
../../modules/image.nix
../../modules/base.nix
../../users/root.nix
../../users/rescue.nix
../../users/collab.nix
];

networking.firewall.allowedTCPPorts = [22 80 8080 9100];

noo.services.collab = {
enable = true;
host = "0.0.0.0";
package = pkgs.collab-vr;
jwtSecret = "mysecret";
oidcIssuer = "https://login.lpm.feri.um.si/oidc";
adminDefaultPassword = "myadmindefaultpass";
};
}
3 changes: 3 additions & 0 deletions ssh/systems.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
"collab-rri.l" = {
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIElC+YBrWW2ihn2/MZQJ3MALZaDTXrXCro0196FgQRay";
};
"collab-vr.l" = {
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJZe0St5C2V336eFqqvUvHrvez4pNGZlmsLNOXq/jJh7";
};
"collab-catalog-dev.l" = {
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG9KT4VVzmR9hQu5mR45GAbekTVuGexomPkCkXiMj87U";
};
Expand Down

0 comments on commit 1d273e6

Please sign in to comment.