587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
19 lines
319 B
Nix
19 lines
319 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.programs.nbd;
|
|
in
|
|
{
|
|
options = {
|
|
programs.nbd = {
|
|
enable = mkEnableOption "Network Block Device (nbd) support";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = with pkgs; [ nbd ];
|
|
boot.kernelModules = [ "nbd" ];
|
|
};
|
|
}
|