diff --git a/modules/all-modules.nix b/modules/all-modules.nix index 6b432ce..9a0bf8d 100644 --- a/modules/all-modules.nix +++ b/modules/all-modules.nix @@ -19,6 +19,7 @@ ./kernel ./outputs/kexecboot.nix ./mount + ./mdevd.nix ./network ./ntp ./outputs.nix diff --git a/modules/mdevd.nix b/modules/mdevd.nix new file mode 100644 index 0000000..43cf063 --- /dev/null +++ b/modules/mdevd.nix @@ -0,0 +1,17 @@ +{ config, pkgs, lib, ...} : +let inherit (pkgs.liminix.services) oneshot longrun bundle target; +in { + config = { + services = rec { + mdevd = longrun { + name = "mdevd"; + notification-fd = 3; + run = "${pkgs.mdevd}/bin/mdevd -D 3 -b 200000 -O4"; + }; + mdevd-coldplug = oneshot { + name ="mdev-coldplug"; + up = "${pkgs.mdevd}/bin/mdevd-coldplug"; + }; + }; + }; +}