42ee3b4209
This attribute allows a unit to make itself a dependency of another unit. Also, add an option to set the default target unit.
28 lines
479 B
Nix
28 lines
479 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
###### implementation
|
|
|
|
config = {
|
|
|
|
jobs.lvm =
|
|
{ startOn = "started udev or new-devices";
|
|
|
|
script =
|
|
''
|
|
# Make all logical volumes on all volume groups available, i.e.,
|
|
# make them appear in /dev.
|
|
${pkgs.lvm2}/sbin/vgchange --available y
|
|
'';
|
|
|
|
task = true;
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.lvm2 ];
|
|
|
|
services.udev.packages = [ pkgs.lvm2 ];
|
|
|
|
};
|
|
|
|
}
|