refactor(modules/hardware/drives): move disko config to a module
This commit is contained in:
parent
67768361c2
commit
2cd82e2e2a
3 changed files with 56 additions and 33 deletions
15
modules/nixos/hardware/default.nix
Normal file
15
modules/nixos/hardware/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{lib,...}:
|
||||
{
|
||||
imports = [
|
||||
./btrfs.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
hardware.drives.btrfs.enable = lib.mkEnableOption "";
|
||||
hardware.drives.btrfs.drive = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "";
|
||||
};
|
||||
hardware.drives.btrfs.ephemeralRoot = lib.mkEnableOption "";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue