mirror of
https://codeberg.org/privacy1st/nixos-anywhere-example
synced 2024-11-22 22:09:34 +01:00
use block device option
This commit is contained in:
parent
23b17c8b9a
commit
d2a4ea4ee9
@ -2,9 +2,7 @@
|
||||
{ lib, ... }: {
|
||||
disko.devices.disk = {
|
||||
one = {
|
||||
# Change this device name match your block device.
|
||||
# The `lsblk` command can help you here
|
||||
device = lib.mkDefault "/dev/sda";
|
||||
device = lib.mkDefault "/dev/nvme0n1";
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "gpt";
|
||||
|
@ -23,6 +23,12 @@
|
||||
./disk-configs/simple-efi.nix # choose your favorite disk layout here
|
||||
#./disk-configs/zfs.nix # choose your favorite disk layout here
|
||||
#./disk-configs/luks-lvm.nix # choose your favorite disk layout here
|
||||
|
||||
# Change device name match your block device.
|
||||
# Running `lsblk` on the target machine can help you here.
|
||||
# Examples: "/dev/nvme0n1", "/dev/sda", "/dev/vda"
|
||||
{ disko.devices.disk.one.device = "/dev/nvme0n1"; }
|
||||
|
||||
{
|
||||
boot.loader.grub = {
|
||||
efiSupport = true;
|
||||
|
Loading…
Reference in New Issue
Block a user