mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Setup a Pi 3, fix hetznix02
This focuses on being able to build a SD card image for a Pi 3 named raspberry and the cofig it contains. As part of making that happen, I found that I had totally messed up hetznix02's hardware config. I fixed this as it is where I am builiding the SD image. This work also resulted in adding a "volume" to hetznix02 and moving `/nix` onto it.
This commit is contained in:
parent
d2950e1ff8
commit
680cd54a0b
5 changed files with 79 additions and 12 deletions
|
|
@ -2,8 +2,8 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
disko.devices = {
|
||||
disk.disk1 = {
|
||||
device = lib.mkDefault "/dev/sda";
|
||||
disk.primary = {
|
||||
device = lib.mkDefault "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_51838383";
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "gpt";
|
||||
|
|
@ -38,5 +38,26 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
disk.volume1 = {
|
||||
device = lib.mkDefault "/dev/disk/by-id/scsi-0HC_Volume_101886924";
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
nix = {
|
||||
name = "nix";
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/nix";
|
||||
mountOptions = [
|
||||
"defaults"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue