Compare commits

...

3 commits

5 changed files with 43 additions and 13 deletions

View file

@ -4,5 +4,7 @@
../../shared/base.nix
../../shared/hardware/vm.nix
../../shared/disko/basic-ext4.nix
../../servers/ci.nix
];
}

View file

@ -0,0 +1,13 @@
{ nixpkgs-flake, ... }:
{
imports = [
"${nixpkgs-flake}/nixos/modules/installer/cd-dvd/installation-cd-graphical-combined.nix"
../../shared/base.nix
];
isoImage.squashfsCompression = "gzip -Xcompression-level 1";
networking.wireless.enable = false;
#Many installs will need this, and it won't hurt either way
services.qemuGuest.enable = true;
}

View file

@ -0,0 +1 @@
{ }

View file

@ -1,22 +1,10 @@
{
pkgs,
lib,
nixpkgs-flake,
...
}:
{ lib, nixpkgs-flake, ... }:
{
imports = [
"${nixpkgs-flake}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
../../shared/base.nix
];
environment.systemPackages = (
with pkgs;
[
cryptsetup
]
);
isoImage.squashfsCompression = "gzip -Xcompression-level 1";
networking.networkmanager.enable = lib.mkForce false;

26
servers/ci.nix Normal file
View file

@ -0,0 +1,26 @@
{ pkgs, ... }:
{
networking.firewall.trustedInterfaces = [ "br-+" ];
services.gitea-actions-runner = {
package = pkgs.forgejo-runner;
instances."forgejo.sinerva.eu" = {
enable = true;
name = "ci-forgejo-runner";
token = "/persist/secrets/forgejo_token";
url = "https://code.forgejo.org/";
labels = [
"Ubuntu-24.04-LTS:docker://ubuntu:24.04"
"nixos-latest:docker://nixos/nix"
];
};
};
virtualisation.docker = {
enable = true;
daemon.settings = {
fixed-cidr-v6 = "fd00::/80";
ipv6 = true;
};
};
}