baremetal: add zfs deps
This commit is contained in:
parent
1ab11f6491
commit
bbe1aa490d
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, utils, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
options.c3d2.baremetal = lib.mkEnableOption "baremetal";
|
options.c3d2.baremetal = lib.mkEnableOption "baremetal";
|
||||||
|
@ -42,6 +42,14 @@
|
||||||
contents."/etc/profile".text = ''
|
contents."/etc/profile".text = ''
|
||||||
systemd-tty-ask-password-agent
|
systemd-tty-ask-password-agent
|
||||||
'';
|
'';
|
||||||
|
services = lib.mkIf config.boot.zfs.enabled {
|
||||||
|
zfs-import-rpool = let
|
||||||
|
devices = map (name: "dev-mapper-${utils.escapeSystemdPath name}.device") (lib.attrNames config.boot.initrd.luks.devices);
|
||||||
|
in {
|
||||||
|
wants = devices;
|
||||||
|
after = devices;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
|
|
Loading…
Reference in New Issue