diff --git a/hive.nix b/hive.nix index 992648c..7c2d59a 100644 --- a/hive.nix +++ b/hive.nix @@ -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 = { name, diff --git a/machines/kat-runner/configuration.nix b/machines/kat-runner/configuration.nix deleted file mode 100644 index 886d2ff..0000000 --- a/machines/kat-runner/configuration.nix +++ /dev/null @@ -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"; -} diff --git a/machines/kat-runner/hardware-configuration.nix b/machines/kat-runner/hardware-configuration.nix deleted file mode 100644 index 4a21dcc..0000000 --- a/machines/kat-runner/hardware-configuration.nix +++ /dev/null @@ -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..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; -}