From f41d27ebff012da4d0fb5466bd0a5201da99d6d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Thu, 10 Apr 2025 21:45:04 +0200 Subject: [PATCH] disko/tungsten: shrink size of drives --- nix/disko/tungsten/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/nix/disko/tungsten/default.nix b/nix/disko/tungsten/default.nix index b8a078eb..172e29f5 100644 --- a/nix/disko/tungsten/default.nix +++ b/nix/disko/tungsten/default.nix @@ -1,10 +1,13 @@ # Adapted from: https://github.com/nix-community/disko/blob/master/example/luks-lvm.nix +# +# This device has a total of 233GB of harddrive storage. +# { disko.devices = { disk = { main = { type = "disk"; - device = throw "change me"; + device = "/dev/sda"; content = { type = "gpt"; partitions = { @@ -42,7 +45,7 @@ type = "lvm_vg"; lvs = { root = { - size = "75G"; + size = "50G"; content = { type = "filesystem"; format = "ext4"; @@ -51,7 +54,7 @@ }; }; nix = { - size = "200G"; + size = "100G"; content = { type = "filesystem"; format = "ext4"; @@ -60,7 +63,7 @@ }; }; swap = { - size = "48G"; # > 32G for hibernation + size = "12G"; content = { type = "swap"; discardPolicy = "both"; @@ -82,7 +85,7 @@ "/tmp" = { fsType = "tmpfs"; mountOptions = [ - "size=4G" + "size=2G" ]; }; };