mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
fix disko generation
This commit is contained in:
parent
5a6d712c2e
commit
9a6522d05c
4 changed files with 25 additions and 20 deletions
|
|
@ -1,39 +0,0 @@
|
|||
{ disko, ... }:
|
||||
{
|
||||
imports = [ disko.nixosModules.disko ];
|
||||
disko.devices.disk.sda =
|
||||
let
|
||||
baseDevice = "/dev/disk/by-id/ata-WDC_WDS240G2G0A-00JH30_180936803144";
|
||||
in
|
||||
{
|
||||
device = baseDevice;
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
ESP = {
|
||||
device = "${baseDevice}-part1";
|
||||
start = "1MiB";
|
||||
end = "1GiB";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
};
|
||||
};
|
||||
root = {
|
||||
device = "${baseDevice}-part2";
|
||||
start = "1GiB";
|
||||
end = "100%";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
_file = ./disko.nix;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue