initial disko config

This commit is contained in:
twoneis 2025-01-08 18:13:44 +01:00
parent c3f1d785e4
commit 3abec60b83
4 changed files with 61 additions and 28 deletions

54
devices/inkvine/disko.nix Normal file
View file

@ -0,0 +1,54 @@
{ ... }: {
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/nvme0";
content = {
type = "gpt";
partitions = {
ESP = {
size = "1G";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "crypted";
settings = {
allowDiscards = true;
};
content = {
type = "btrfs";
extraArgs = [ "-f" ];
subvolumes = {
"/root" = {
mountpoint = "/";
mountOptions = [ "compress=zstd" "noatime" ];
};
"/nix" = {
mountpoint = "/nix";
mountOptions = [ "compress=zstd" "noatime" ];
};
"/swap" = {
mountpoint = "/.swapvol";
swap.swapfile.size = "8G";
};
};
};
};
};
};
};
};
};
};
}