fix disk id and hostname and hostid
This commit is contained in:
parent
159d2947bf
commit
d3de030099
|
@ -18,8 +18,8 @@
|
|||
hardware.graphics.extraPackages = with pkgs; [ amdvlk rocm-opencl-icd rocm-opencl-runtime ];
|
||||
|
||||
# our hostname and an ID for ZFS
|
||||
networking.hostName = "mini";
|
||||
networking.hostId = "e925ccfb";
|
||||
networking.hostName = "beta";
|
||||
networking.hostId = "3f20def9";
|
||||
|
||||
# classic dhcpcd
|
||||
networking.networkmanager.enable = false;
|
||||
|
|
|
@ -12,18 +12,11 @@
|
|||
|
||||
# efi partition
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part1";
|
||||
{ device = "/dev/disk/by-id/nvme-SAMSUNG_MZVLB1T0HBLR-000L2_S4DZNX0R362286-part1";
|
||||
fsType = "vfat";
|
||||
neededForBoot = true;
|
||||
};
|
||||
|
||||
# vms
|
||||
fileSystems."/home/cullmann/vms" =
|
||||
{ device = "vpool/vms";
|
||||
fsType = "zfs";
|
||||
depends = [ "/home" ];
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
|
@ -25,8 +25,8 @@ efibootmgr
|
|||
# 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/nvme-CT4000P3PSSD8_2325E6E63746
|
||||
HOST=mini
|
||||
DISK=/dev/disk/by-id/nvme-SAMSUNG_MZVLB1T0HBLR-000L2_S4DZNX0R362286
|
||||
HOST=beta
|
||||
|
||||
# ensure 4k sector size
|
||||
nvme format --lbaf=1 --force $DISK
|
||||
|
|
Loading…
Reference in a new issue