refactor(nixos): move btrfs config to its own module
This commit is contained in:
parent
9f6b094daa
commit
b7e9cdf51d
3 changed files with 108 additions and 110 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue