This commit is contained in:
2026-01-21 16:54:09 +00:00
parent d294038801
commit dfbc1ea5a2
4 changed files with 76 additions and 27 deletions

View File

@@ -1,10 +1,10 @@
{ inputs, ... }:
{ inputs, lib, ... }:
{
imports = [ inputs.disko.nixosModules.disko ];
disko.devices = {
disk = {
main = {
device = "/dev/mmcblk0";
device = "/dev/disk/by-label/NIXOS_SD";
type = "disk";
content = {
type = "gpt";
@@ -36,24 +36,9 @@
root = {
size = "100%";
content = {
type = "btrfs";
extraArgs = [ "-f" ]; # Override existing partition
# Subvolumes must set a mountpoint in order to be mounted,
# unless their parent is mounted
subvolumes = {
# Subvolume name is different from mountpoint
"@" = {
mountpoint = "/";
};
# Subvolume name is the same as the mountpoint
"@home" = {
mountpoint = "/home";
};
# Parent is not mounted so the mountpoint must be set
"@nix" = {
mountpoint = "/nix";
};
};
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};