summaryrefslogtreecommitdiff
path: root/kj-laptop01/disk-config.nix
diff options
context:
space:
mode:
authorKj Tsanaktsidis <kjtsanaktsidis@groq.com>2025-09-07 13:52:20 +1000
committerKj Tsanaktsidis <kjtsanaktsidis@groq.com>2025-09-07 14:25:57 +1000
commit7c4275017db7b31da2bd9299c83e28ead981b5ed (patch)
treeafdc249ed376beeeec53d9deaff8962d47b6f7c9 /kj-laptop01/disk-config.nix
parentb2c0cf27604f421258077156d18d7ed45d32228f (diff)
wip1
Diffstat (limited to 'kj-laptop01/disk-config.nix')
-rw-r--r--kj-laptop01/disk-config.nix83
1 files changed, 83 insertions, 0 deletions
diff --git a/kj-laptop01/disk-config.nix b/kj-laptop01/disk-config.nix
new file mode 100644
index 0000000..b0f74c9
--- /dev/null
+++ b/kj-laptop01/disk-config.nix
@@ -0,0 +1,83 @@
+{
+ config,
+ ...
+}:
+{
+ disko.devices = {
+ disk.nvme0n1 = {
+ device = "/dev/nvme0n1";
+ type = "disk";
+ content = {
+ type = "gpt";
+ partitions = {
+ esp = {
+ name = "ESP";
+ start = "1MiB";
+ size = "1023M";
+ type = "EF00";
+ content = {
+ type = "filesystem";
+ format = "vfat";
+ mountpoint = "/boot";
+ };
+ };
+ luks = {
+ name = "cryptroot";
+ type = "8300";
+ size = "100%";
+ content = {
+ type = "luks";
+ name = "crypted";
+ passwordFile = config.sops.secrets.luks_passphrase.path;
+ settings = {
+ allowDiscards = true;
+ bypassWorkqueues = true;
+ };
+ content = {
+ type = "btrfs";
+ subvolumes = {
+ "@" = { };
+ "@/root" = {
+ mountpoint = "/";
+ mountOptions = [
+ "compress=zstd"
+ "noatime"
+ ];
+ };
+ "@/home" = {
+ mountpoint = "/home";
+ mountOptions = [
+ "compress=zstd"
+ "noatime"
+ ];
+ };
+ "@/var" = {
+ mountpoint = "/var";
+ mountOptions = [
+ "compress=zstd"
+ "noatime"
+ ];
+ };
+ "@/nix" = {
+ mountpoint = "/nix";
+ mountOptions = [
+ "compress=zstd"
+ "noatime"
+ ];
+ };
+ "@/swap" = {
+ mountpoint = "/swap";
+ mountOptions = [
+ "compress=zstd"
+ "noatime"
+ ];
+ };
+ };
+ };
+ };
+ };
+ };
+ };
+ };
+ };
+}