forked from Fediversity/Fediversity
closes #93. note that this includes classes: - `nixos` - `nixosTest` - `nixops4Resource` - `nixops4Deployment` .. and my (made-up, as per the [docs](https://ryantm.github.io/nixpkgs/module-system/module-system/#module-system-lib-evalModules-param-class)): - `nix-unit` - `package` .. while i did not manage to cover: - service tests, given `pkgs.nixosTest` seemed to not actually like `_class = "nixosTest"` (?!) ... nor #93's mentioned destructured arguments for that matter, as per Fediversity/Fediversity#93 (comment) - let me know if that is still desired as well. Reviewed-on: Fediversity/Fediversity#398 Reviewed-by: Valentin Gagarin <valentin.gagarin@tweag.io> Co-authored-by: Kiara Grouwstra <kiara@procolix.eu> Co-committed-by: Kiara Grouwstra <kiara@procolix.eu>
40 lines
1 KiB
Nix
40 lines
1 KiB
Nix
{
|
|
_class = "nixops4Resource";
|
|
|
|
fediversityVm = {
|
|
vmId = 2116;
|
|
proxmox = "procolix";
|
|
description = "Forgejo";
|
|
|
|
ipv4.address = "185.206.232.34";
|
|
ipv6.address = "2a00:51c0:12:1201::20";
|
|
};
|
|
|
|
nixos.module =
|
|
{ lib, ... }:
|
|
{
|
|
imports = [
|
|
./forgejo.nix
|
|
];
|
|
|
|
## vm02116 is running on old hardware based on a Xen VM environment, so it
|
|
## needs these extra options. Once the VM gets moved to a newer node, these
|
|
## two options can safely be removed.
|
|
boot.initrd.availableKernelModules = [ "xen_blkfront" ];
|
|
services.xe-guest-utilities.enable = true;
|
|
|
|
## NOTE: This VM was created manually, which requires us to override the
|
|
## default disko-based `fileSystems` definition.
|
|
fileSystems = lib.mkForce {
|
|
"/" = {
|
|
device = "/dev/disk/by-uuid/3802a66d-e31a-4650-86f3-b51b11918853";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
"/boot" = {
|
|
device = "/dev/disk/by-uuid/2CE2-1173";
|
|
fsType = "vfat";
|
|
};
|
|
};
|
|
};
|
|
}
|