5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
17 lines
316 B
Nix
17 lines
316 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.programs.nbd;
|
|
in
|
|
{
|
|
options = {
|
|
programs.nbd = {
|
|
enable = lib.mkEnableOption "Network Block Device (nbd) support";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.systemPackages = with pkgs; [ nbd ];
|
|
boot.kernelModules = [ "nbd" ];
|
|
};
|
|
}
|