diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-01-09 14:49:49 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-01-09 14:49:49 -0800 |
commit | a410a402a5dc5c68208ab8d6610fade60c8639c0 (patch) | |
tree | ad1a15f899ba2ca397c0919f74e2c3634502d6c9 /sda/disk-config.nix | |
parent | 87ce8be7319fa8612a7edcb9261272688ab099bb (diff) |
use disko instead of rolling my own scripts and fixes
Diffstat (limited to 'sda/disk-config.nix')
-rw-r--r-- | sda/disk-config.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/sda/disk-config.nix b/sda/disk-config.nix new file mode 100644 index 0000000..7e275e5 --- /dev/null +++ b/sda/disk-config.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 = "/"; + }; + }; + }; + }; + }; + }; + }; + }; +} |