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, ... }: {
|
{ lib, ... }: {
|
||||||
disko.devices.disk = {
|
disko.devices.disk = {
|
||||||
one = {
|
one = {
|
||||||
# Change this device name match your block device.
|
device = lib.mkDefault "/dev/nvme0n1";
|
||||||
# The `lsblk` command can help you here
|
|
||||||
device = lib.mkDefault "/dev/sda";
|
|
||||||
type = "disk";
|
type = "disk";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
|
@ -23,6 +23,12 @@
|
|||||||
./disk-configs/simple-efi.nix # choose your favorite disk layout here
|
./disk-configs/simple-efi.nix # choose your favorite disk layout here
|
||||||
#./disk-configs/zfs.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
|
#./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 = {
|
boot.loader.grub = {
|
||||||
efiSupport = true;
|
efiSupport = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user