From 7b1bf8360207748b4568ab19fca95b7edc3b1138 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Thu, 27 Mar 2025 00:12:32 +0800 Subject: [PATCH] chore: rename impermanence --- .../modules/{ephemeral-root.nix => impermanence.nix} | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) rename systems/modules/{ephemeral-root.nix => impermanence.nix} (93%) diff --git a/systems/modules/ephemeral-root.nix b/systems/modules/impermanence.nix similarity index 93% rename from systems/modules/ephemeral-root.nix rename to systems/modules/impermanence.nix index 3d8c055..e8663c2 100644 --- a/systems/modules/ephemeral-root.nix +++ b/systems/modules/impermanence.nix @@ -1,4 +1,9 @@ -{ inputs, lib, ... }: +{ + inputs, + lib, + device ? throw "Set this to your disk device", + ... +}: { imports = [ inputs.disko.nixosModules.disko @@ -6,7 +11,8 @@ ]; # Disk Partitioning disko.devices.disk.main = { - device = "/dev/disk/by-id/nvme-eui.01000000000000008ce38e04019a68ab"; + # device = "/dev/disk/by-id/nvme-eui.01000000000000008ce38e04019a68ab"; + inherit device; type = "disk"; content.type = "gpt"; content.partitions = {