added disks to tunyon

This commit is contained in:
twoneis 2024-07-21 01:58:39 +02:00
parent ca9601459c
commit f839e37b9b
3 changed files with 10 additions and 6 deletions

View file

@ -1,6 +1,7 @@
{ pkgs, config, ... }: { { pkgs, config, ... }: {
imports = [ imports = [
./options.nix ./options.nix
./disks.nix
]; ];
nixpkgs = { nixpkgs = {

7
devices/tunyon/disks.nix Normal file
View file

@ -0,0 +1,7 @@
{ ... }: {
disks = {
boot = "";
crypt = "";
root = "";
};
}

View file

@ -1,7 +1,7 @@
{ lib, ... }: { { lib, ... }: {
options = let options = let
inherit (lib) mkOption mkEnableOption; inherit (lib) mkOption mkEnableOption;
inherit (lib.types) nullOr str attrsOf; inherit (lib.types) nullOr attrsOf str;
in { in {
full = mkEnableOption "Enable complete configuration for end-user machine"; full = mkEnableOption "Enable complete configuration for end-user machine";
@ -17,11 +17,7 @@
disks = mkOption { disks = mkOption {
type = attrsOf str; type = attrsOf str;
default = { default = { };
boot = "";
crypt = "";
root = "";
};
example = { example = {
boot = "4672-C1A9"; boot = "4672-C1A9";
crypt = "747ae319-f189-44f5-9737-a42672e2c02d"; crypt = "747ae319-f189-44f5-9737-a42672e2c02d";