diff options
| author | spl3g <spleefer6@yandex.ru> | 2025-09-02 20:17:33 +0300 |
|---|---|---|
| committer | spl3g <spleefer6@yandex.ru> | 2025-09-02 20:17:33 +0300 |
| commit | fd31a7a778274470212d6c098db8311579946d6d (patch) | |
| tree | e495e1903a9b8f102b94098e342252d4dd232ef4 /nixos/laptop/disk-config.nix | |
| parent | ad87fed7a13e312bd3df1639dce850ea518cdb88 (diff) | |
feat: add disk-config to the laptop config
Diffstat (limited to 'nixos/laptop/disk-config.nix')
| -rw-r--r-- | nixos/laptop/disk-config.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/nixos/laptop/disk-config.nix b/nixos/laptop/disk-config.nix new file mode 100644 index 0000000..825a147 --- /dev/null +++ b/nixos/laptop/disk-config.nix @@ -0,0 +1,37 @@ +{ + disko.devices = { + disk = { + main = { + device = "/dev/nvme0n1"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + boot = { + size = "1M"; + type = "EF02"; + }; + ESP = { + size = "1G"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + mountOptions = [ "umask=0077" ]; + }; + }; + root = { + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + }; + }; + }; + }; + }; + }; +} |
