17 lines
375 B
Nix
17 lines
375 B
Nix
|
{ options, config, pkgs, lib, ... }:
|
||
|
|
||
|
with lib;
|
||
|
with lib.plusultra;
|
||
|
let cfg = config.plusultra.hardware.storage;
|
||
|
in
|
||
|
{
|
||
|
options.plusultra.hardware.storage = with types; {
|
||
|
enable = mkBoolOpt false
|
||
|
"Whether or not to enable support for extra storage devices.";
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
environment.systemPackages = with pkgs; [ ntfs3g fuseiso ];
|
||
|
};
|
||
|
}
|