mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-02 03:13:58 -05:00
updates for migration
This commit is contained in:
parent
ecf036181b
commit
e9caa4543b
2 changed files with 46 additions and 1 deletions
44
hosts/common/disks/simple-efi.nix
Normal file
44
hosts/common/disks/simple-efi.nix
Normal 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 = "/";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue