forked from emily/nixfiles
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
|
{ config, inputs, ... }: {
|
||
|
imports = [
|
||
|
inputs.disko.nixosModules.disko
|
||
|
];
|
||
|
disko.devices.disk.root = {
|
||
|
device = "/dev/sda";
|
||
|
type = "disk";
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
BOOT = {
|
||
|
type = "EF00";
|
||
|
size = "512M";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "vfat";
|
||
|
mountpoint = "/boot";
|
||
|
mountOptions = [ "umask=0077" "defaults" ];
|
||
|
};
|
||
|
};
|
||
|
root = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "btrfs";
|
||
|
extraArgs = [ "-f" ];
|
||
|
subvolumes = {
|
||
|
"nixos" = {
|
||
|
mountpoint = "/";
|
||
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||
|
};
|
||
|
"home" = {
|
||
|
mountpoint = "/home";
|
||
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||
|
};
|
||
|
"nix" = {
|
||
|
mountpoint = "/nix";
|
||
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|