mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
19 lines
516 B
Nix
19 lines
516 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.services.stratis;
|
|
in
|
|
{
|
|
options.services.stratis = {
|
|
enable = lib.mkEnableOption (lib.mdDoc "Stratis Storage - Easy to use local storage management for Linux");
|
|
};
|
|
|
|
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" ];
|
|
};
|
|
}
|