about summary refs log tree commit diff
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2024-07-20 15:23:31 +0200
committerProfpatsch <mail@profpatsch.de>2024-07-20 15:23:31 +0200
commitc23864e48a84c1a0168bbd6811cd5886165c4bff (patch)
tree641589e4ac3865b7db8758977523337584d58f87
parentf69b78325d96216c09599676a80c3fb8f56f1b04 (diff)
machines/profpatsch: remove mikiya
-rw-r--r--machines/default.nix1
-rw-r--r--machines/profpatsch/mikiya.nix87
2 files changed, 0 insertions, 88 deletions
diff --git a/machines/default.nix b/machines/default.nix
index 8dcd8e0f..cdb02e7c 100644
--- a/machines/default.nix
+++ b/machines/default.nix
@@ -16,7 +16,6 @@ with import ../lib;
     haku = callMachine ./profpatsch/haku.nix {};
     legosi = callMachine ./profpatsch/legosi.nix {};
     leguin = callMachine ./profpatsch/leguin.nix {};
-    # mikiya = callMachine ./profpatsch/mikiya.nix {};
   };
   sternenseemann = {
     ludwig = callMachine ./sternenseemann/ludwig.nix {};
diff --git a/machines/profpatsch/mikiya.nix b/machines/profpatsch/mikiya.nix
deleted file mode 100644
index 915f1243..00000000
--- a/machines/profpatsch/mikiya.nix
+++ /dev/null
@@ -1,87 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-let
-  myLib  = import ./lib.nix  { inherit pkgs lib; };
-  myPkgs = import ./pkgs.nix { inherit pkgs lib myLib; };
-
-  mkDevice = category: num: uuid: {
-    name = "mikiya-${category}-crypt-${toString num}";
-    device = "/dev/disk/by-uuid/${uuid}";
-    keyFile = "/root/raid.key";
-  };
-
-  systemDevice = "/dev/disk/by-id/ata-MKNSSDCR60GB-DX_MKN1140A0000025162";
-  systemPartition = "/dev/disk/by-uuid/56910867-ed83-438a-b67c-c057e662c89e";
-  rootDevice = "/dev/mapper/mikiya-root";
-
-  raidDevices = lib.imap (mkDevice "raid") [
-    "f0069e04-d058-40b3-8f13-92f11c4c2546"
-  ];
-
-
-
-in {
-  imports = [ ./base-server.nix ];
-
-  config = {
-
-    boot = {
-      loader.grub.device = systemDevice;
-      kernelModules = [ "kvm-intel" ];
-      kernelParams = [ "ip=192.168.0.5" ];
-
-      initrd = {
-        network = {
-          enable = true;
-          ssh.enable = true;
-          ssh.authorizedKeys = myLib.authKeys;
-          # we wait until the root device is unlocked (by ssh)
-          postCommands = ''
-            echo "Waiting for ssh unlock of ${rootDevice} (infinitely)"
-            while [ ! -e ${rootDevice} ]; do sleep 1; done
-          '';
-        };
-          availableKernelModules = [
-            "ahci" "xhci_pci" "usb_storage" "usbhid" "sd_mod"
-          # used for ethernet device(s)
-          "r8169"
-          ];
-
-        # decrypt root device
-        luks.devices.mikiya-root.device = systemPartition;
-      };
-
-    };
-
-    fileSystems."/" = {
-      device = rootDevice;
-      fsType = "ext4";
-      options = [ "ssd" ];
-    };
-    fileSystems."/boot" = {
-      device = "/dev/disk/by-uuid/9aa38aa7-652f-4762-a0c2-b70332b93f4d";
-      fsType = "ext3";
-    };
-
-    nix.settings.max-jobs = 4;
-
-    vuizvui.user.profpatsch.server.sshPort = 22;
-
-    /*
-    # decrypt RAID with key from root
-    environment.etc.crypttab.text =
-      let luksDevice = dev: "${dev.name} ${dev.device} ${dev.keyFile} luks";
-      in concatMapStringsSep "\n" luksDevice raidDevices;
-
-    powerManagement = {
-      # spin down raid drives after 30 minutes
-      powerUpCommand =
-        let driveStandby = drive: "${pkgs.hdparm}/sbin/hdparm -S 241 ${drive.device}";
-        in concatMapStringsSep "\n" driveStandby raidDevices;
-    */
-
-    users.users = { inherit (myLib) philip; };
-
-  };
-
-}