summaryrefslogtreecommitdiff
path: root/nix/modules/vars.nix
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2025-09-07 20:48:46 -0700
committerPreston Pan <ret2pop@gmail.com>2025-09-07 20:48:46 -0700
commit5b8d09f2d7ebb7a1670c695af5761353d5b76d7e (patch)
tree7cd2d1d4a30012e325c38d5bda65e83e6a48b5d6 /nix/modules/vars.nix
parent5146b2fa654b469eaf425345797d58f0126de4b9 (diff)
create drive abstractions and entry points for disko
Diffstat (limited to 'nix/modules/vars.nix')
-rw-r--r--nix/modules/vars.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/nix/modules/vars.nix b/nix/modules/vars.nix
index 6ee1cc0..48da971 100644
--- a/nix/modules/vars.nix
+++ b/nix/modules/vars.nix
@@ -1,6 +1,18 @@
{ lib, ... }:
{
options.monorepo.vars = {
+ device = lib.mkOption {
+ type = lib.types.str;
+ default = "/dev/sda";
+ example = "/dev/nvme0n1";
+ description = "device that NixOS is installed to";
+ };
+
+ myDiskoSpec = lib.mkOption {
+ type = lib.types.attrs;
+ description = "retains a copy of the disko spec for reflection";
+ };
+
userName = lib.mkOption {
type = lib.types.str;
default = "preston";