diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-01-13 22:11:02 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-01-13 22:11:02 -0800 |
commit | dd461e48043dabee4694e2b200f4c1d9cfdbc3d9 (patch) | |
tree | bc6c481be908e92e52d7828caf17365d00f5e7b7 /nix/systems/desktop/sda-simple.nix | |
parent | d878a0353ba8cec87df4f79d59864c92b1ea4cea (diff) |
merge these two repos into one
Diffstat (limited to 'nix/systems/desktop/sda-simple.nix')
-rw-r--r-- | nix/systems/desktop/sda-simple.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/nix/systems/desktop/sda-simple.nix b/nix/systems/desktop/sda-simple.nix new file mode 100644 index 0000000..86263dd --- /dev/null +++ b/nix/systems/desktop/sda-simple.nix @@ -0,0 +1,39 @@ +# 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 = { + my-disk = { + # change this entry + device = "/dev/sda"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + ESP = { + type = "EF00"; + size = "500M"; + priority = 1; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + mountOptions = [ "umask=0077" ]; + }; + }; + root = { + size = "100%"; + priority = 2; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + }; + }; + }; + }; + }; + }; +} |