end of gitlab-runner

This commit is contained in:
catvayor 2024-06-01 18:21:57 +02:00
parent 8a183734fe
commit 0cfcb475ae
3 changed files with 0 additions and 143 deletions

View file

@ -117,17 +117,6 @@ in
]; ];
}; };
kat-runner =
{ name, nodes, ... }:
{
deployment.targetHost = "runner.kat";
imports = [
./machines/kat-runner/configuration.nix
(users.root { ssh = true; })
];
};
kat-iso = kat-iso =
{ {
name, name,

View file

@ -1,82 +0,0 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [ ./hardware-configuration.nix ];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
time.timeZone = "Europe/Paris";
systemd.network = {
enable = true;
networks."10-enp1s0" = {
name = "enp1s0";
address = [
"192.168.122.3/24"
"fe80::3/64"
];
routes = [
{ Gateway = "192.168.122.1"; }
{ Gateway = "fe80::1"; }
];
};
};
networking = {
useDHCP = false;
nameservers = [
"192.168.122.1"
"fe80::1%enp1s0"
];
};
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "fr";
};
services.dbus.packages = with pkgs; [ dconf ];
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
wget
nix-search-cli
git
btop
ranger
screen
gnumake
];
services.gitlab-runner = {
enable = true;
services.parkas = {
executor = "shell";
registrationConfigFile = "/root/parkas-runner-secrets.toml";
tagList = [
"test"
"linux"
"nix"
];
};
};
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
services.openssh.enable = true;
networking.firewall.enable = false;
system.stateVersion = "23.11";
}

View file

@ -1,50 +0,0 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.initrd.availableKernelModules = [
"ahci"
"xhci_pci"
"virtio_pci"
"sr_mod"
"virtio_blk"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/33eef82e-c54b-49a8-8f48-4dc28aab0fab";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/6760-3980";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}