updates for migration

This commit is contained in:
TheWanderingCrow 2026-01-23 10:33:42 -05:00
parent ecf036181b
commit e9caa4543b
2 changed files with 46 additions and 1 deletions

View file

@ -0,0 +1,44 @@
# NOTE: ... is needed because dikso passes diskoFile
{
lib,
disk ? "/dev/vda",
withSwap ? false,
swapSize,
...
}:
{
disko.devices = {
disk = {
disk0 = {
type = "disk";
device = disk;
content = {
type = "gpt";
partitions = {
ESP = {
priority = 1;
name = "ESP";
start = "1M";
end = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "defaults" ];
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}

View file

@ -20,7 +20,8 @@
# Disks
inputs.disko.nixosModules.disko
(lib.custom.relativeToRoot "hosts/common/disks/btrfs-disk.nix")
# Change back to btrfs
(lib.custom.relativeToRoot "hosts/common/disks/simple-efi.nix")
{
_module.args = {
# TODO: Change back to nvme0n1 after migrating back