systemd-cryptsetup-generator: Init
This commit is contained in:
parent
2e9a0b21f4
commit
47e5fd9f57
21
pkgs/os-specific/linux/systemd/cryptsetup-generator.nix
Normal file
21
pkgs/os-specific/linux/systemd/cryptsetup-generator.nix
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{ stdenv, systemd, cryptsetup }:
|
||||||
|
|
||||||
|
assert stdenv.isLinux;
|
||||||
|
|
||||||
|
stdenv.lib.overrideDerivation systemd (p: {
|
||||||
|
version = p.version;
|
||||||
|
name = "systemd-cryptsetup-generator";
|
||||||
|
|
||||||
|
nativeBuildInputs = p.nativeBuildInputs ++ [ cryptsetup ];
|
||||||
|
outputs = [ "out" ];
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
make $makeFlags built-sources
|
||||||
|
make $makeFlags systemd-cryptsetup-generator
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/lib/systemd/system-generators/
|
||||||
|
cp systemd-cryptsetup-generator $out/lib/systemd/system-generators/systemd-cryptsetup-generator
|
||||||
|
'';
|
||||||
|
})
|
@ -10997,6 +10997,9 @@ in
|
|||||||
inherit cryptsetup;
|
inherit cryptsetup;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
# The standalone cryptsetup generator for systemd
|
||||||
|
systemd-cryptsetup-generator = callPackage ../os-specific/linux/systemd/cryptsetup-generator.nix { };
|
||||||
|
|
||||||
# In nixos, you can set systemd.package = pkgs.systemd_with_lvm2 to get
|
# In nixos, you can set systemd.package = pkgs.systemd_with_lvm2 to get
|
||||||
# LVM2 working in systemd.
|
# LVM2 working in systemd.
|
||||||
systemd_with_lvm2 = pkgs.lib.overrideDerivation pkgs.systemd (p: {
|
systemd_with_lvm2 = pkgs.lib.overrideDerivation pkgs.systemd (p: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user