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 ];
|
hardware.graphics.extraPackages = with pkgs; [ amdvlk rocm-opencl-icd rocm-opencl-runtime ];
|
||||||
|
|
||||||
# our hostname and an ID for ZFS
|
# our hostname and an ID for ZFS
|
||||||
networking.hostName = "mini";
|
networking.hostName = "beta";
|
||||||
networking.hostId = "e925ccfb";
|
networking.hostId = "3f20def9";
|
||||||
|
|
||||||
# classic dhcpcd
|
# classic dhcpcd
|
||||||
networking.networkmanager.enable = false;
|
networking.networkmanager.enable = false;
|
||||||
|
|
|
@ -12,18 +12,11 @@
|
||||||
|
|
||||||
# efi partition
|
# efi partition
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part1";
|
{ device = "/dev/disk/by-id/nvme-SAMSUNG_MZVLB1T0HBLR-000L2_S4DZNX0R362286-part1";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
neededForBoot = true;
|
neededForBoot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# vms
|
|
||||||
fileSystems."/home/cullmann/vms" =
|
|
||||||
{ device = "vpool/vms";
|
|
||||||
fsType = "zfs";
|
|
||||||
depends = [ "/home" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
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
|
# Defining some helper variables (these will be used in later code
|
||||||
# blocks as well, so make sure to use the same terminal session or
|
# blocks as well, so make sure to use the same terminal session or
|
||||||
# redefine them later)
|
# redefine them later)
|
||||||
DISK=/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746
|
DISK=/dev/disk/by-id/nvme-SAMSUNG_MZVLB1T0HBLR-000L2_S4DZNX0R362286
|
||||||
HOST=mini
|
HOST=beta
|
||||||
|
|
||||||
# ensure 4k sector size
|
# ensure 4k sector size
|
||||||
nvme format --lbaf=1 --force $DISK
|
nvme format --lbaf=1 --force $DISK
|
||||||
|
|
Loading…
Reference in a new issue