From 7c19c60940ba79355a49c67c7ef7dbf170120880 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Wed, 4 Sep 2019 20:30:43 -0400 Subject: [PATCH] This host didn't make it and will probably get wiped. --- morph/grid.nix | 4 ---- morph/staging001-hardware.nix | 24 --------------------- morph/staging001.nix | 39 ----------------------------------- 3 files changed, 67 deletions(-) delete mode 100644 morph/staging001-hardware.nix delete mode 100644 morph/staging001.nix diff --git a/morph/grid.nix b/morph/grid.nix index b6b89c45..dbb374d5 100644 --- a/morph/grid.nix +++ b/morph/grid.nix @@ -16,10 +16,6 @@ import ./make-grid.nix { # doesn't specify one. # # The names must be unique! - "staging001" = import ./staging001.nix { - publicIPv4 = "209.95.51.251"; - inherit (cfg) publicStoragePort; - }; # Pass the whole grid configuration to the module and let it take what it # wants. diff --git a/morph/staging001-hardware.nix b/morph/staging001-hardware.nix deleted file mode 100644 index 32f65afc..00000000 --- a/morph/staging001-hardware.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - imports = - [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> - ]; - - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ]; - boot.initrd.kernelModules = [ "dm-snapshot" ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/cde5f64f-a179-42f4-808f-d1f43584db23"; - fsType = "ext4"; - }; - - swapDevices = - [ { device = "/dev/disk/by-uuid/9084108f-592b-4a13-b833-4dd41d2709d3"; } - ]; - - nix.maxJobs = lib.mkDefault 8; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; -} diff --git a/morph/staging001.nix b/morph/staging001.nix deleted file mode 100644 index 873d8d35..00000000 --- a/morph/staging001.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ publicIPv4, publicStoragePort }: - -{ config, pkgs, ... }: -{ imports = - [ # Include the results of the hardware scan. - ./staging001-hardware.nix - ]; - - boot.loader.grub.enable = true; - boot.loader.grub.version = 2; - boot.loader.grub.device = "/dev/disk/by-id/wwn-0x50000396cb7049cb"; - - # Let me in to do subsequent configuration. - networking.firewall.enable = false; - services.openssh.enable = true; - users.users.root.openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN4GenAY/YLGuf1WoMXyyVa3S9i4JLQ0AG+pt7nvcLlQ exarkun@baryon" - ]; - - # networking.hostName = "staging001"; - # networking.domain = "storage.privatestorage-staging.com"; - - # Provide the static network configuration. - networking.interfaces = { - enp2s0f0.ipv4.addresses = [ - { address = publicIPv4; prefixLength = 24; } - ]; - }; - networking.defaultGateway = { - address = "209.95.51.1"; - interface = "enp2s0f0"; - }; - - # This value determines the NixOS release with which your system is to be - # compatible, in order to avoid breaking some software such as database - # servers. You should change this only after NixOS release notes say you - # should. - system.stateVersion = "19.03"; # Did you read the comment? -} -- GitLab