aboutsummaryrefslogtreecommitdiff
path: root/nix/modules/sda-simple.nix
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2025-01-16 02:11:26 -0800
committerPreston Pan <ret2pop@gmail.com>2025-01-16 02:11:26 -0800
commit1a3486d77574c06b395ab6cda41084f5ed24a3f4 (patch)
tree69d1051bd14a0c3cb374f84a8c06cb655eba509b /nix/modules/sda-simple.nix
parent2dff9d2b61244fed49136028d0e0f6ae3ae759cf (diff)
modularized nix configuration; builds correctly
Diffstat (limited to 'nix/modules/sda-simple.nix')
-rw-r--r--nix/modules/sda-simple.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/nix/modules/sda-simple.nix b/nix/modules/sda-simple.nix
index f4d6e0e..1513d82 100644
--- a/nix/modules/sda-simple.nix
+++ b/nix/modules/sda-simple.nix
@@ -1,6 +1,13 @@
-{ config, ... }:
+{ config, lib, ... }:
{
- disko.devices = {
+ options.monorepo.vars.disk = lib.mkOption {
+ type = lib.types.str;
+ default = "/dev/sda";
+ example = "/dev/nvme0n1";
+ description = "Disk to install NixOS to";
+ };
+
+ config.disko.devices = {
disk = {
my-disk = {
device = config.monorepo.vars.disk;