repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
grafana-alloy: don't build the frontend twice
[NixPkgs.git]
/
nixos
/
modules
/
programs
/
nbd.nix
blob
1e319f027345501f3694f2265ecf4a7a18962657
1
{ config, lib, pkgs, ... }:
2
3
let
4
cfg = config.programs.nbd;
5
in
6
{
7
options = {
8
programs.nbd = {
9
enable = lib.mkEnableOption "Network Block Device (nbd) support";
10
};
11
};
12
13
config = lib.mkIf cfg.enable {
14
environment.systemPackages = with pkgs; [ nbd ];
15
boot.kernelModules = [ "nbd" ];
16
};
17
}