summaryrefslogtreecommitdiff
path: root/kuro
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2024-03-27 19:24:01 +0100
committerChristoph Cullmann <cullmann@kde.org>2024-03-27 19:24:01 +0100
commit974bf05be798244fc2ca80e78804c7e61875fc18 (patch)
tree10d6f4fb3a62636af8c6e39aac849006307cf1f3 /kuro
parent3e84f8680d2eb97bee8c10a8e961ec9e75d0a77c (diff)
remove no longer used machines
Diffstat (limited to 'kuro')
-rw-r--r--kuro/configuration.nix34
-rw-r--r--kuro/hardware-configuration.nix66
-rw-r--r--kuro/install.txt98
3 files changed, 0 insertions, 198 deletions
diff --git a/kuro/configuration.nix b/kuro/configuration.nix
deleted file mode 100644
index aaeb0c9..0000000
--- a/kuro/configuration.nix
+++ /dev/null
@@ -1,34 +0,0 @@
-# Edit this configuration file to define what should be installed on
-# your system. Help is available in the configuration.nix(5) man page
-# and in the NixOS manual (accessible by running `nixos-help`).
-
-{ config, pkgs, ... }:
-
-{
- imports =
- [
- # Include the results of the hardware scan.
- ./hardware-configuration.nix
-
- # Shared config of all machines
- /data/nixos/common.nix
- ];
-
- # amd graphics
- hardware.opengl.extraPackages = with pkgs; [ amdvlk rocm-opencl-icd rocm-opencl-runtime ];
-
- # use systemd-networkd, fixed IPv4, dynamic IPv6
- networking.hostName = "kuro";
- networking.useDHCP = false;
- networking.nameservers = [ "192.168.13.1" ];
- systemd.network = {
- enable = true;
- networks."10-wan" = {
- matchConfig.Name = "enp2s0";
- address = [ "192.168.13.101/24" ];
- routes = [ { routeConfig.Gateway = "192.168.13.1"; } ];
- networkConfig.IPv6AcceptRA = true;
- linkConfig.RequiredForOnline = "routable";
- };
- };
-}
diff --git a/kuro/hardware-configuration.nix b/kuro/hardware-configuration.nix
deleted file mode 100644
index 06c2ddb..0000000
--- a/kuro/hardware-configuration.nix
+++ /dev/null
@@ -1,66 +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 = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ];
- boot.initrd.kernelModules = [ "amdgpu" ];
- boot.kernelModules = [ "kvm-amd" ];
-
- fileSystems."/" =
- { device = "none";
- fsType = "tmpfs";
- neededForBoot = true;
- options = [ "defaults" "size=8G" "mode=755" ];
- };
-
- fileSystems."/boot" =
- { device = "/dev/disk/by-id/ata-Samsung_SSD_870_QVO_4TB_S5STNF0W806802J-part1";
- fsType = "vfat";
- neededForBoot = true;
- };
-
- fileSystems."/nix" =
- { device = "/dev/disk/by-id/ata-Samsung_SSD_870_QVO_4TB_S5STNF0W806802J-part2";
- fsType = "bcachefs";
- neededForBoot = true;
- options = [ "noatime" "nodiratime" ];
- };
-
- fileSystems."/data" =
- { device = "/dev/disk/by-id/ata-Samsung_SSD_870_QVO_4TB_S5STNF0W806802J-part3";
- fsType = "bcachefs";
- neededForBoot = true;
- options = [ "noatime" "nodiratime" ];
- };
-
- fileSystems."/home" =
- { device = "/data/home";
- fsType = "none";
- neededForBoot = true;
- options = [ "bind" ];
- depends = [ "/data" ];
- };
-
- fileSystems."/root" =
- { device = "/data/root";
- fsType = "none";
- neededForBoot = true;
- options = [ "bind" ];
- depends = [ "/data" ];
- };
-
- fileSystems."/etc/nixos" =
- { device = "/data/nixos/kuro";
- fsType = "none";
- neededForBoot = true;
- options = [ "bind" ];
- depends = [ "/data" ];
- };
-
- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
- hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
-}
diff --git a/kuro/install.txt b/kuro/install.txt
deleted file mode 100644
index 2a44b64..0000000
--- a/kuro/install.txt
+++ /dev/null
@@ -1,98 +0,0 @@
-#
-# kill old efi boot stuff
-#
-
-efibootmgr
-efibootmgr -b 0 -B
-efibootmgr -b 1 -B
-efibootmgr -b 2 -B
-efibootmgr -b 3 -B
-efibootmgr -b 4 -B
-efibootmgr
-
-#
-# install script below
-#
-
-# fix unlocking https://nixos.wiki/wiki/Bcachefs
-nix-env -iA nixos.keyutils
-keyctl link @u @s
-
-# Defining some helper variables (these will be used in later code
-# blocks as well, so make sure to use the same terminal session or
-# redefine them later)
-DISK=/dev/disk/by-id/ata-Samsung_SSD_870_QVO_4TB_S5STNF0W806802J
-HOST=kuro
-
-# kill old data
-sgdisk --zap-all $DISK
-blkdiscard -v $DISK
-wipefs -a $DISK
-gdisk -l $DISK
-
-# create partitions
-parted $DISK -- mklabel gpt
-sgdisk -n 1:0:+1024M -c 1:"EFI System Partition" -t 1:EF00 $DISK
-sgdisk -n 2:0:+256G -c 2:"nix" -t 2:8e00 $DISK
-sgdisk -n 3:0:0 -c 3:"data" -t 3:8e00 $DISK
-parted $DISK -- set 1 boot on
-
-sleep 5
-
-# take a look
-cat /proc/partitions
-
-# boot partition
-mkfs.fat -F 32 -n EFIBOOT $DISK-part1
-
-# create encrypted bcachefs
-bcachefs format --block_size=4096 --errors=ro --metadata_checksum=xxhash --data_checksum=xxhash --compression=lz4 --wide_macs --acl --encrypted --fs_label=nix --discard -f $DISK-part2
-bcachefs format --block_size=4096 --errors=ro --metadata_checksum=xxhash --data_checksum=xxhash --compression=lz4 --wide_macs --acl --encrypted --fs_label=data --discard -f $DISK-part3
-
-# prepare install
-mount -t tmpfs none /mnt
-
-# Create directories to mount file systems on
-mkdir -p /mnt/{data,nix,home,boot,root,etc/nixos}
-
-# mount the ESP
-mount $DISK-part1 /mnt/boot
-
-# mount bcachefs stuff
-mount -o noatime,nodiratime $DISK-part2 /mnt/nix
-mount -o noatime,nodiratime $DISK-part3 /mnt/data
-
-# bind mount persistent stuff to data
-mkdir -p /mnt/{data/home,data/root,data/nixos/$HOST}
-mount --bind /mnt/data/home /mnt/home
-mount --bind /mnt/data/root /mnt/root
-mount --bind /mnt/data/nixos/$HOST /mnt/etc/nixos
-
-# take a look
-mount
-
-# configure
-nixos-generate-config --root /mnt
-
-# save /mnt/etc/nixos/hardware-configuration.nix /mnt/etc/nixos/configuration.nix
-
-cp /mnt/etc/nixos/hardware-configuration.nix /tmp
-cp /mnt/etc/nixos/configuration.nix /tmp
-
-# copy config data
-
-# patch some paths there
-
-sudo scp -r /data/nixos root@192.168.13.101:/mnt/data
-
-# install
-
-nixos-install --no-root-passwd --root /mnt
-
-# unmount all stuff
-
-umount -Rl /mnt
-
-# sync all /data after the install
-
-sudo -E rsync -va --delete --one-file-system /data root@192.168.13.101:/