Files
dotfiles/etcnixos/disko_mreow.nix
2025-02-07 23:31:20 -05:00

41 lines
973 B
Nix

{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/sdb";
# device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
ESP = {
size = "500M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "crypted";
settings.allowDiscards = true;
passwordFile = "/tmp/secret.key";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
};
}