refactor(nixos): move btrfs config to its own module

This commit is contained in:
Mohammad Rafiq 2025-06-16 18:31:56 +08:00
parent 9f6b094daa
commit b7e9cdf51d
No known key found for this signature in database
3 changed files with 108 additions and 110 deletions

View file

@ -1,27 +1,19 @@
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkEnableOption singleton;
cfg = config.hardware;
inherit (lib) singleton;
in
{
imports = [
./btrfs.nix
./nvidia.nix
./audio.nix
./networking.nix
];
options.hardware = {
drives.btrfs = {
enable = lib.mkEnableOption "";
drive = lib.pantheon.mkStrOption;
ephemeralRoot = lib.mkEnableOption "";
};
gpu = lib.pantheon.mkStrOption;
platform = lib.pantheon.mkStrOption;
};