mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 23:00:14 +01:00
38 lines
798 B
Nix
38 lines
798 B
Nix
|
|
{ inputs, ... }:
|
||
|
|
{
|
||
|
|
imports = [
|
||
|
|
inputs.disko.nixosModules.disko
|
||
|
|
];
|
||
|
|
disko.devices = {
|
||
|
|
disk = {
|
||
|
|
my-disk = {
|
||
|
|
device = "/dev/sda";
|
||
|
|
type = "disk";
|
||
|
|
content = {
|
||
|
|
type = "gpt";
|
||
|
|
partitions = {
|
||
|
|
ESP = {
|
||
|
|
type = "EF00";
|
||
|
|
size = "500M";
|
||
|
|
content = {
|
||
|
|
type = "filesystem";
|
||
|
|
format = "vfat";
|
||
|
|
mountpoint = "/boot";
|
||
|
|
mountOptions = [ "umask=0077" ];
|
||
|
|
};
|
||
|
|
};
|
||
|
|
root = {
|
||
|
|
size = "100%";
|
||
|
|
content = {
|
||
|
|
type = "filesystem";
|
||
|
|
format = "ext4";
|
||
|
|
mountpoint = "/";
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|