diff options
Diffstat (limited to 'nix/modules/sda-simple.nix')
-rw-r--r-- | nix/modules/sda-simple.nix | 11 |
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; |