Something went wrong. Try again.
forked from nix-community/disko
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ disko.devices = { disk = { main = { type = "disk"; device = "/dev/vdb"; content = { type = "gpt"; partitions = { ESP = { size = "500M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "umask=0077" ]; }; }; root = { size = "100%"; content = { type = "luks"; name = "root"; extraOpenArgs = [ ]; settings = { # if you want to use the key for interactive login be sure there is no trailing newline # for example use `echo -n "password" > /tmp/secret.key` keyFile = "/tmp/secret.key"; allowDiscards = true; }; additionalKeyFiles = [ "/tmp/additionalSecret.key" ]; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; }; }; }; home = { size = "100M"; content = { type = "luks"; name = "home"; extraOpenArgs = [ ]; settings = { # if you want to use the key for interactive login be sure there is no trailing newline # for example use `echo -n "password" > /tmp/secret.key` keyFile = "/tmp/secret.key"; allowDiscards = true; }; additionalKeyFiles = [ "/tmp/additionalSecret.key" ]; content = { type = "filesystem"; format = "ext4"; mountpoint = "/home"; }; }; }; }; }; }; }; };}