mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 12:45:27 +03:00
nixos/hpsa: remove with lib;
This commit is contained in:
parent
22946376a9
commit
4d2a1391de
1 changed files with 2 additions and 5 deletions
|
@ -1,7 +1,4 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
hpssacli = pkgs.stdenv.mkDerivation rec {
|
hpssacli = pkgs.stdenv.mkDerivation rec {
|
||||||
pname = "hpssacli";
|
pname = "hpssacli";
|
||||||
|
@ -48,13 +45,13 @@ in {
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
hardware.raid.HPSmartArray = {
|
hardware.raid.HPSmartArray = {
|
||||||
enable = mkEnableOption "HP Smart Array kernel modules and CLI utility";
|
enable = lib.mkEnableOption "HP Smart Array kernel modules and CLI utility";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
|
|
||||||
config = mkIf config.hardware.raid.HPSmartArray.enable {
|
config = lib.mkIf config.hardware.raid.HPSmartArray.enable {
|
||||||
|
|
||||||
boot.initrd.kernelModules = [ "sg" ]; /* hpssacli wants it */
|
boot.initrd.kernelModules = [ "sg" ]; /* hpssacli wants it */
|
||||||
boot.initrd.availableKernelModules = [ "hpsa" ];
|
boot.initrd.availableKernelModules = [ "hpsa" ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue