From 9484c4ec525c02caa8a65ecfe37ed24f1d4b321d Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Mon, 2 Mar 2026 00:03:12 -0800 Subject: Remove local nix directory to prepare for submodule --- nix/disko/btrfs-simple.nix | 77 ---------------------------------------------- nix/disko/drive-bios.nix | 35 --------------------- nix/disko/drive-simple.nix | 42 ------------------------- 3 files changed, 154 deletions(-) delete mode 100644 nix/disko/btrfs-simple.nix delete mode 100644 nix/disko/drive-bios.nix delete mode 100644 nix/disko/drive-simple.nix (limited to 'nix/disko') diff --git a/nix/disko/btrfs-simple.nix b/nix/disko/btrfs-simple.nix deleted file mode 100644 index b49558d..0000000 --- a/nix/disko/btrfs-simple.nix +++ /dev/null @@ -1,77 +0,0 @@ -{ lib, config, ... }: -let - spec = { - disko.devices = { - disk = { - main = { - type = "disk"; - device = config.monorepo.vars.device; - content = { - type = "gpt"; - partitions = { - ESP = { - size = "512M"; - type = "EF00"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - mountOptions = [ "umask=0077" ]; - }; - }; - luks = { - size = "100%"; - content = { - type = "luks"; - name = "crypted"; - passwordFile = "/tmp/secret.key"; - content = { - type = "btrfs"; - extraArgs = [ "-f" ]; - subvolumes = { - "/root" = { - mountpoint = "/"; - mountOptions = [ - "compress=zstd" - "noatime" - ]; - }; - - "/home" = { - mountpoint = "/home"; - mountOptions = [ - "compress=zstd" - "noatime" - ]; - }; - - "/nix" = { - mountpoint = "/nix"; - mountOptions = [ - "compress=zstd" - "noatime" - ]; - }; - - "/persistent" = { - mountpoint = "/persistent"; - mountOptions = [ - "compress=zstd" - "noatime" - ]; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; -in -{ - monorepo.vars.diskoSpec = spec; - disko.devices = spec.disko.devices; -} diff --git a/nix/disko/drive-bios.nix b/nix/disko/drive-bios.nix deleted file mode 100644 index 3dd0a74..0000000 --- a/nix/disko/drive-bios.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ config, lib, ... }: -let - spec = { - disko.devices = { - disk = { - main = { - device = config.monorepo.vars.device; - type = "disk"; - content = { - type = "gpt"; - partitions = { - boot = { - size = "1M"; - type = "EF02"; - }; - root = { - label = "disk-main-root"; - size = "100%"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - }; - }; - }; - }; - }; - }; - }; - }; -in -{ - monorepo.vars.diskoSpec = spec; - disko.devices = spec.disko.devices; -} diff --git a/nix/disko/drive-simple.nix b/nix/disko/drive-simple.nix deleted file mode 100644 index 7e105cb..0000000 --- a/nix/disko/drive-simple.nix +++ /dev/null @@ -1,42 +0,0 @@ -{ lib, config, ... }: -let - spec = { - disko.devices = { - disk = { - main = { - device = config.monorepo.vars.device; - 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 = "/"; - }; - }; - }; - }; - }; - }; - }; - }; -in -{ - monorepo.vars.diskoSpec = spec; - disko.devices = spec.disko.devices; -} -- cgit v1.3