summaryrefslogtreecommitdiff
path: root/mini
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2024-01-10 20:53:25 +0100
committerChristoph Cullmann <cullmann@kde.org>2024-01-10 20:53:25 +0100
commit69ead0a3409dd97695f8d7a678fe38cd0c09f713 (patch)
treec962c3e90221e61bf95d5ec447a203bae2792280 /mini
parente329c27056d48dfc3c28d6f5297e0275b1c49cba (diff)
more bcachefs changes
Diffstat (limited to 'mini')
-rw-r--r--mini/configuration.nix2
-rw-r--r--mini/hardware-configuration.nix38
-rw-r--r--mini/install.txt12
3 files changed, 28 insertions, 24 deletions
diff --git a/mini/configuration.nix b/mini/configuration.nix
index 5210fdd..e4bd3c8 100644
--- a/mini/configuration.nix
+++ b/mini/configuration.nix
@@ -11,7 +11,7 @@
./hardware-configuration.nix
# Shared config of all machines
- /data/nixos/common.nix
+ /mnt/data/nixos/common.nix
];
# amd graphics
diff --git a/mini/hardware-configuration.nix b/mini/hardware-configuration.nix
index ae24554..ff8a847 100644
--- a/mini/hardware-configuration.nix
+++ b/mini/hardware-configuration.nix
@@ -13,30 +13,28 @@
fileSystems."/" =
{ device = "none";
fsType = "tmpfs";
+ neededForBoot = true;
options = [ "defaults" "size=8G" "mode=755" ];
};
fileSystems."/boot" =
- { device = "/dev/disk/by-uuid/F404-531A";
+ { device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part1";
fsType = "vfat";
+ neededForBoot = true;
};
- # system
- boot.initrd.luks.devices."crypt-system".device = "/dev/disk/by-uuid/22c208e6-579b-4d34-8f83-83aa4a7ab1c3";
-
- # vms
- boot.initrd.luks.devices."crypt-vms".device = "/dev/disk/by-id/ata-CT2000MX500SSD1_2138E5D5061F";
-
fileSystems."/nix" =
- { device = "/dev/mapper/crypt-system";
- fsType = "btrfs";
- options = [ "subvol=nix" "noatime" "nodiratime" ];
+ { device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part2";
+ fsType = "bcachefs";
+ neededForBoot = true;
+ options = [ "noatime" "nodiratime" ];
};
fileSystems."/data" =
- { device = "/dev/mapper/crypt-system";
- fsType = "btrfs";
- options = [ "subvol=data" "noatime" "nodiratime" ];
+ { device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part3";
+ fsType = "bcachefs";
+ neededForBoot = true;
+ options = [ "noatime" "nodiratime" ];
};
fileSystems."/home" =
@@ -57,13 +55,13 @@
options = [ "bind" ];
};
- fileSystems."/home/cullmann/vms" =
- {
- depends = [ "/home" ];
- device = "/dev/mapper/crypt-vms";
- fsType = "btrfs";
- options = [ "noatime" "nodiratime" ];
- };
+# fileSystems."/home/cullmann/vms" =
+# {
+# depends = [ "/home" ];
+# device = "/dev/mapper/crypt-vms";
+# fsType = "btrfs";
+# options = [ "noatime" "nodiratime" ];
+# };
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
diff --git a/mini/install.txt b/mini/install.txt
index afd1c8a..c1167ae 100644
--- a/mini/install.txt
+++ b/mini/install.txt
@@ -31,7 +31,11 @@ sudo dd if=result/iso/nixos-24.05.20240108.317484b-x86_64-linux.iso of=/dev/sda
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
@@ -108,9 +112,11 @@ nixos-generate-config --root /mnt
cp /mnt/etc/nixos/hardware-configuration.nix /tmp
cp /mnt/etc/nixos/configuration.nix /tmp
-# copy data
+# copy config data
+
+# patch some paths there
-rsync --checksum -vaR --delete /data /mnt
+sudo scp -r /data/nixos root@192.168.13.100:/mnt/data
# install