diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-01-10 01:52:36 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-01-10 01:52:36 -0800 |
commit | 2779b842702d6565d73288adc72683f362db310e (patch) | |
tree | 0bb801a91ab4d1e26a5205eb75e0dcc635ed0bc4 /disko/sda-simple.nix | |
parent | 5571b9c613a06c57def082bf17f5bc689dbfabdc (diff) |
make compatible with many computers
Diffstat (limited to 'disko/sda-simple.nix')
-rw-r--r-- | disko/sda-simple.nix | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/disko/sda-simple.nix b/disko/sda-simple.nix index d723bd5..a9c1e8f 100644 --- a/disko/sda-simple.nix +++ b/disko/sda-simple.nix @@ -1,17 +1,19 @@ -# CHANGE THE DISK YOU WANT TO FORMAT NOW +# This will install a simple system with a root and boot partition. +# Make sure to change the entry device entry to the one that you +# are installing the configuration to. { disko.devices = { disk = { - main = { - type = "disk"; - # CHANGEME change to the disk you want to format + my-disk = { + # change this entry device = "/dev/sda"; + type = "disk"; content = { type = "gpt"; partitions = { ESP = { - size = "500M"; type = "EF00"; + size = "500M"; content = { type = "filesystem"; format = "vfat"; @@ -19,18 +21,12 @@ mountOptions = [ "umask=0077" ]; }; }; - luks = { + root = { size = "100%"; content = { - type = "luks"; - name = "crypted"; - settings.allowDiscards = true; - passwordFile = "/tmp/secret.key"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - }; + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; }; }; }; |