diff --git a/flake.nix b/flake.nix index 75b1be2..0286fdf 100644 --- a/flake.nix +++ b/flake.nix @@ -126,7 +126,6 @@ inputs.grzegorz-clients.nixosModules.grzegorz-webui ]; }; - buskerud = stableNixosConfig "buskerud" { }; }; nixosModules = { diff --git a/hosts/buskerud/configuration.nix b/hosts/buskerud/configuration.nix deleted file mode 100644 index 43fc2c2..0000000 --- a/hosts/buskerud/configuration.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ config, pkgs, values, ... }: -{ - imports = [ - ./hardware-configuration.nix - ../../base - ../../misc/metrics-exporters.nix - - ./services/libvirt.nix - ]; - - # buskerud does not support efi? - # boot.loader.systemd-boot.enable = true; - # boot.loader.efi.canTouchEfiVariables = true; - boot.loader.grub.enable = true; - boot.loader.grub.device = "/dev/sdb"; - - networking.hostName = "buskerud"; - networking.search = [ "pvv.ntnu.no" "pvv.org" ]; - networking.nameservers = [ "129.241.0.200" "129.241.0.201" ]; - networking.tempAddresses = "disabled"; - - systemd.network.networks."enp3s0f0" = values.defaultNetworkConfig // { - matchConfig.Name = "enp3s0f0"; - address = with values.hosts.buskerud; [ (ipv4 + "/25") (ipv6 + "/64") ]; - }; - - # List packages installed in system profile - environment.systemPackages = with pkgs; [ - ]; - - # 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 = "23.05"; # Did you read the comment? -} diff --git a/hosts/buskerud/hardware-configuration.nix b/hosts/buskerud/hardware-configuration.nix deleted file mode 100644 index da0c5b5..0000000 --- a/hosts/buskerud/hardware-configuration.nix +++ /dev/null @@ -1,37 +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 + "/installer/scan/not-detected.nix") - ]; - - boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ata_piix" "hpsa" "usb_storage" "usbhid" "sd_mod" "sr_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/ed9654fe-575a-4fb3-b6ff-1b059479acff"; - 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.enp14s0f0.useDHCP = lib.mkDefault true; - # networking.interfaces.enp14s0f1.useDHCP = lib.mkDefault true; - # networking.interfaces.enp3s0f0.useDHCP = lib.mkDefault true; - # networking.interfaces.enp3s0f1.useDHCP = lib.mkDefault true; - # networking.interfaces.enp4s0f0.useDHCP = lib.mkDefault true; - # networking.interfaces.enp4s0f1.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -} diff --git a/hosts/buskerud/services/libvirt.nix b/hosts/buskerud/services/libvirt.nix deleted file mode 100644 index 01eae00..0000000 --- a/hosts/buskerud/services/libvirt.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ config, pkgs, lib, ... }: -{ - virtualisation.libvirtd.enable = true; - programs.dconf.enable = true; - boot.kernelModules = [ "kvm-intel" ]; - - # On a gui-enabled machine, connect with: - # $ virt-manager --connect "qemu+ssh://buskerud/system?socket=/var/run/libvirt/libvirt-sock" -} - diff --git a/values.nix b/values.nix index bfb8785..a623f37 100644 --- a/values.nix +++ b/values.nix @@ -58,10 +58,6 @@ in rec { ipv4 = pvv-ipv4 204; ipv6 = pvv-ipv6 "1:4f"; # Wtf øystein og daniel why }; - buskerud = { - ipv4 = pvv-ipv4 231; - ipv6 = pvv-ipv6 231; - }; }; defaultNetworkConfig = {