mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 20:20:41 +03:00
28 lines
587 B
Nix
28 lines
587 B
Nix
{ xlib, ... }:
|
|
{
|
|
disko.devices = {
|
|
disk = {
|
|
"${xlib.device.hostname}" = {
|
|
device = "/dev/nvme0n1p4";
|
|
type = "disk";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
root = {
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
extraArgs = [
|
|
"-L ${xlib.device.hostname}" # Filesystem label
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|