lol

nixos/stratis: init

Nick Cao ca03f2dc bb307c91

+19
+1
nixos/modules/module-list.nix
··· 1266 1266 ./tasks/network-interfaces-scripted.nix 1267 1267 ./tasks/scsi-link-power-management.nix 1268 1268 ./tasks/snapraid.nix 1269 + ./tasks/stratis.nix 1269 1270 ./tasks/swraid.nix 1270 1271 ./tasks/trackpoint.nix 1271 1272 ./tasks/powertop.nix
+18
nixos/modules/tasks/stratis.nix
··· 1 + { config, lib, pkgs, ... }: 2 + 3 + let 4 + cfg = config.services.stratis; 5 + in 6 + { 7 + options.services.stratis = { 8 + enable = lib.mkEnableOption (lib.mdDoc "Stratis Storage - Easy to use local storage management for Linux"); 9 + }; 10 + 11 + config = lib.mkIf cfg.enable { 12 + environment.systemPackages = [ pkgs.stratis-cli ]; 13 + systemd.packages = [ pkgs.stratisd ]; 14 + services.dbus.packages = [ pkgs.stratisd ]; 15 + services.udev.packages = [ pkgs.stratisd ]; 16 + systemd.services.stratisd.wantedBy = [ "sysinit.target" ]; 17 + }; 18 + }