tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/stratis: init
Nick Cao
3 years ago
ca03f2dc
bb307c91
+19
2 changed files
expand all
collapse all
unified
split
nixos
modules
module-list.nix
tasks
stratis.nix
+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
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
1
+
{ config, lib, pkgs, ... }:
2
2
+
3
3
+
let
4
4
+
cfg = config.services.stratis;
5
5
+
in
6
6
+
{
7
7
+
options.services.stratis = {
8
8
+
enable = lib.mkEnableOption (lib.mdDoc "Stratis Storage - Easy to use local storage management for Linux");
9
9
+
};
10
10
+
11
11
+
config = lib.mkIf cfg.enable {
12
12
+
environment.systemPackages = [ pkgs.stratis-cli ];
13
13
+
systemd.packages = [ pkgs.stratisd ];
14
14
+
services.dbus.packages = [ pkgs.stratisd ];
15
15
+
services.udev.packages = [ pkgs.stratisd ];
16
16
+
systemd.services.stratisd.wantedBy = [ "sysinit.target" ];
17
17
+
};
18
18
+
}