diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-01-09 16:16:00 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-01-09 16:16:00 -0800 |
commit | 8eb423887c43195530196cf3b418ddd8ccf5abe8 (patch) | |
tree | 477b811d84fe66ac3d65f0d5eb2fe834c77902e8 /disko | |
parent | a410a402a5dc5c68208ab8d6610fade60c8639c0 (diff) |
add disko dir
Diffstat (limited to 'disko')
-rw-r--r-- | disko/sda-simple.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/disko/sda-simple.nix b/disko/sda-simple.nix new file mode 100644 index 0000000..7e275e5 --- /dev/null +++ b/disko/sda-simple.nix @@ -0,0 +1,39 @@ +{ + disko.devices = { + disk = { + main = { + type = "disk"; + device = "/dev/sda"; + 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 = "/"; + }; + }; + }; + }; + }; + }; + }; + }; +} |