mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
nixos/stratis: init
This commit is contained in:
parent
bb307c917d
commit
ca03f2dc0f
@ -1266,6 +1266,7 @@
|
||||
./tasks/network-interfaces-scripted.nix
|
||||
./tasks/scsi-link-power-management.nix
|
||||
./tasks/snapraid.nix
|
||||
./tasks/stratis.nix
|
||||
./tasks/swraid.nix
|
||||
./tasks/trackpoint.nix
|
||||
./tasks/powertop.nix
|
||||
|
18
nixos/modules/tasks/stratis.nix
Normal file
18
nixos/modules/tasks/stratis.nix
Normal file
@ -0,0 +1,18 @@
|
||||
{ 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" ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user