nixcfg/modules/nixos/hardware/storage/default.nix
2024-01-11 10:31:04 +00:00

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 ];
};
}