summaryrefslogtreecommitdiff
path: root/hosts/desktop/disko.nix
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2025-12-22 03:44:33 +0100
committeradikro <adikro@disroot.org>2025-12-22 03:44:33 +0100
commitc2e7208de4e3e7d018560175808f838aa6861b68 (patch)
treebd9cedd1bf524f3e907e6da664e5fe706e7913a1 /hosts/desktop/disko.nix
parentf0a94a72d7f191120682e97130f8277cd56f82d0 (diff)
disko config for desktop host for future reinstalls
Diffstat (limited to 'hosts/desktop/disko.nix')
-rw-r--r--hosts/desktop/disko.nix76
1 files changed, 76 insertions, 0 deletions
diff --git a/hosts/desktop/disko.nix b/hosts/desktop/disko.nix
new file mode 100644
index 0000000..8e93ef7
--- /dev/null
+++ b/hosts/desktop/disko.nix
@@ -0,0 +1,76 @@
+{
+ disko.devices = {
+ disk = {
+ main = {
+ type = "disk";
+ device = "/dev/nvme0n1";
+ content = {
+ type = "gpt";
+ partitions = {
+ ESP = {
+ size = "2G";
+ type = "EF00";
+ content = {
+ type = "filesystem";
+ format = "vfat";
+ mountpoint = "/boot";
+ mountOptions = [ "umask=0077" ];
+ };
+ };
+ root = {
+ size = "100%";
+ content = {
+ type = "btrfs";
+ extraArgs = [ "-f" ];
+ subvolumes = {
+ "root" = {
+ mountpoint = "/";
+ mountOptions = [ "compress=zstd" "noatime" ];
+ };
+ "nix" = {
+ mountpoint = "/nix";
+ mountOptions = [ "compress=zstd" "noatime" ];
+ };
+ "home" = {
+ mountpoint = "/home";
+ mountOptions = [ "compress=zstd" "noatime" "autodefrag" ];
+ };
+ "llms" = {
+ mountpoint = "/llms";
+ mountOptions = [ "compress=zstd" "noatime" "autodefrag"];
+ };
+ "vms" = {
+ mountpoint = "/vms";
+ mountOptions = [ "noatime" "autodefrag" ];
+ };
+ "swap" = {
+ mountpoint = "/.swapvol";
+ swap.swapfile.size = "32G";
+ };
+ };
+ };
+ };
+ };
+ };
+ };
+ media = {
+ type = "disk";
+ device = "/dev/sda";
+ content = {
+ type = "gpt";
+ partitions = {
+ media = {
+ size = "100%";
+ content = {
+ type = "filesystem";
+ format = "ext4";
+ mountpoint = "/media";
+ # extraArgs = [ "-f" ];
+ };
+ };
+ };
+ };
+ };
+ };
+ };
+}