From a656e4b331c00c4aca3b4d177323a213834c1433 Mon Sep 17 00:00:00 2001 From: Ember 'n0emis' Keske Date: Thu, 21 Jul 2022 09:31:43 +0200 Subject: [PATCH] remove pre-yate-n0emis --- .sops.yaml | 8 -- flake.nix | 4 - hosts/pre-yate-n0emis/configuration.nix | 103 ------------------ .../hardware-configuration.nix | 31 ------ 4 files changed, 146 deletions(-) delete mode 100644 hosts/pre-yate-n0emis/configuration.nix delete mode 100644 hosts/pre-yate-n0emis/hardware-configuration.nix diff --git a/.sops.yaml b/.sops.yaml index cc4efac..e6bc21a 100644 --- a/.sops.yaml +++ b/.sops.yaml @@ -4,7 +4,6 @@ keys: - &host_nerd age1x69924s94z4k7s50utyuqrwshpt8p8yzwaxny2gle7yeyg4w3spqml95mu - &host_yate age10pxa70g3ekxdrk788l52s93a6ftavdw3r8x6d23gmsluudmwq3asmu6ah9 - &host_yate_dialup age14zsha5c5238v6hzchdfkjgjjwzc2qc79tl0ngmqrdquck5f945zs35vps4 - - &host_pre_yate_n0emis age1lrujyz4d48yjelmh6eufxjffuvfm9pusen3uxskyhnyf27xyucdqq3jza5 creation_rules: - path_regex: hosts/nerd/.* key_groups: @@ -27,10 +26,3 @@ creation_rules: - *admin_n0emis age: - *host_yate_dialup - - path_regex: hosts/pre-yate-n0emis/.* - key_groups: - - pgp: - - *admin_clerie - - *admin_n0emis - age: - - *host_pre_yate_n0emis diff --git a/flake.nix b/flake.nix index 6453c04..b9ab33e 100644 --- a/flake.nix +++ b/flake.nix @@ -61,10 +61,6 @@ }; }; - pre-yate-n0emis = { config, pkgs, ... }: { - deployment.targetHost = "2001:470:7694::5e5"; - }; - radius = { config, pkgs, ... }: { deployment.targetHost = "radius.bula22.de"; }; diff --git a/hosts/pre-yate-n0emis/configuration.nix b/hosts/pre-yate-n0emis/configuration.nix deleted file mode 100644 index 8fbbee5..0000000 --- a/hosts/pre-yate-n0emis/configuration.nix +++ /dev/null @@ -1,103 +0,0 @@ -{ config, pkgs, ... }: - -{ - imports = - [ # Include the results of the hardware scan. - ./hardware-configuration.nix - ]; - - # Use the GRUB 2 boot loader. - boot.loader.grub.enable = true; - boot.loader.grub.version = 2; - boot.loader.grub.device = "/dev/sda"; - - networking.hostName = "pre-yate-n0emis"; - - boot.kernel.sysctl = { - "net.ipv4.conf.all.forwarding" = true; - "net.ipv6.conf.all.forwarding" = true; - }; - - networking.useNetworkd = true; - systemd.network = { - links."10-eth0" = { - matchConfig.MACAddress = "4a:a6:0d:b9:3b:82"; - linkConfig.Name = "eth0"; - }; - networks."10-eth0" = { - matchConfig = { - Name = "eth0"; - }; - DHCP = "yes"; - }; - - links."20-vlan132" = { - matchConfig.MACAddress = "8e:50:2d:73:27:51"; - linkConfig.Name = "vlan132"; - }; - networks."20-vlan132" = { - matchConfig = { - Name = "vlan132"; - }; - address = [ "10.42.132.1/24" ]; - }; - }; - - services.fieldpoc = { - enable = true; - dhcp = { - enable = true; - interface = "vlan132"; - subnet = "10.42.132.0/24"; - pool = "10.42.132.200 - 10.42.132.250"; - router = "10.42.132.1"; - dnsServers = "1.1.1.1,9.9.9.9"; - omm = "10.42.132.11"; - reservations = [ - { - name = "rfp-01"; - macAddress = "00:30:42:1B:8C:7A"; - ipAddress = "10.42.132.11"; - } - ]; - }; - }; - services.yate.config = { - yate.ygi = { - sndpath = "/opt/sounds"; - sndformats = "slin,gsm,wav"; - }; - accfile.dialout = { - enabled = "yes"; - protocol = "sip"; - username = "iocaste"; - password = "iocaste"; - registrar = "172.16.1.1"; - }; - regexroute = "[default] -\${username}^$=-;error=noauth -^iocaste$=goto dialin -^99991001$=tone/dial -^99991002$=tone/busy -^99991003$=tone/ring -^99991004$=tone/specdial -^99991005$=tone/congestion -^99991006$=tone/outoforder -^99991007$=tone/milliwatt -^99991008$=tone/info -^.*$=line/\\0;line=dialout - -[dialin] -\${sip_x-called}^.*$=lateroute/\\1"; - }; - - - # This value determines the NixOS release from which the default - # settings for stateful data, like file locations and database versions - # on your system were taken. It‘s perfectly fine and recommended to leave - # this value at the release version of the first install of this system. - # Before changing this value read the documentation for this option - # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "22.05"; # Did you read the comment? - -} diff --git a/hosts/pre-yate-n0emis/hardware-configuration.nix b/hosts/pre-yate-n0emis/hardware-configuration.nix deleted file mode 100644 index 879694c..0000000 --- a/hosts/pre-yate-n0emis/hardware-configuration.nix +++ /dev/null @@ -1,31 +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 = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/d3e87ae2-fb17-44f0-b113-14b185a2c845"; - fsType = "ext4"; - }; - - 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.ens18.useDHCP = lib.mkDefault true; - - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -}