2022-09-12 08:38:10 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.stratis;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.services.stratis = {
|
2024-04-13 14:54:15 +02:00
|
|
|
enable = lib.mkEnableOption "Stratis Storage - Easy to use local storage management for Linux";
|
2022-09-12 08:38:10 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [ pkgs.stratis-cli ];
|
|
|
|
systemd.packages = [ pkgs.stratisd ];
|
|
|
|
services.dbus.packages = [ pkgs.stratisd ];
|
|
|
|
services.udev.packages = [ pkgs.stratisd ];
|
|
|
|
systemd.services.stratisd.wantedBy = [ "sysinit.target" ];
|
|
|
|
};
|
|
|
|
}
|