forked from fediversity/fediversity
		
	Following Fediversity/Fediversity#478 (comment), here is a PR that plugs the infra's `vmOptions` and `nixosConfigurations` outputs into flake checks, instead of calling random Nix commands from the CI. There is still a bit of magic in the CI, but that's because we don't have yet a Nix-aware CI that exposes one job per flake check. Reviewed-on: Fediversity/Fediversity#488 Reviewed-by: kiara Grouwstra <kiara@procolix.eu> Co-authored-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com> Co-committed-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
		
			
				
	
	
		
			39 lines
		
	
	
	
		
			836 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
	
		
			836 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  _class = "nixops4Resource";
 | 
						|
 | 
						|
  fediversityVm = {
 | 
						|
    name = "vm02187";
 | 
						|
    isFediversityVm = false;
 | 
						|
    vmId = 2187;
 | 
						|
    description = "Wiki";
 | 
						|
 | 
						|
    ipv4.address = "185.206.232.187";
 | 
						|
    ipv6.address = "2a00:51c0:12:1201::187";
 | 
						|
  };
 | 
						|
 | 
						|
  nixos.module =
 | 
						|
    { lib, ... }:
 | 
						|
    {
 | 
						|
      imports = [
 | 
						|
        ./wiki.nix
 | 
						|
      ];
 | 
						|
 | 
						|
      ## 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/a46a9c46-e32b-4216-a4aa-8819b2cd0d49";
 | 
						|
          fsType = "ext4";
 | 
						|
        };
 | 
						|
 | 
						|
        "/boot" = {
 | 
						|
          device = "/dev/disk/by-uuid/6AB5-4FA8";
 | 
						|
          fsType = "vfat";
 | 
						|
          options = [
 | 
						|
            "fmask=0022"
 | 
						|
            "dmask=0022"
 | 
						|
          ];
 | 
						|
        };
 | 
						|
      };
 | 
						|
    };
 | 
						|
}
 |