tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
devmon: New service
Oliver Charles
10 years ago
08c192a4
a296639b
+29
2 changed files
expand all
collapse all
unified
split
nixos
modules
module-list.nix
services
misc
devmon.nix
+1
nixos/modules/module-list.nix
···
189
189
./services/misc/cpuminer-cryptonight.nix
190
190
./services/misc/cgminer.nix
191
191
./services/misc/confd.nix
192
192
+
./services/misc/devmon.nix
192
193
./services/misc/dictd.nix
193
194
./services/misc/disnix.nix
194
195
./services/misc/docker-registry.nix
+28
nixos/modules/services/misc/devmon.nix
···
1
1
+
{ pkgs, config, lib, ... }:
2
2
+
3
3
+
with lib;
4
4
+
5
5
+
let
6
6
+
cfg = config.services.devmon;
7
7
+
8
8
+
in {
9
9
+
options = {
10
10
+
services.devmon = {
11
11
+
enable = mkOption {
12
12
+
default = false;
13
13
+
description = ''
14
14
+
Whether to enable devmon, an automatic device mounting daemon.
15
15
+
'';
16
16
+
};
17
17
+
};
18
18
+
};
19
19
+
20
20
+
config = mkIf cfg.enable {
21
21
+
systemd.services.devmon = {
22
22
+
description = "devmon automatic device mounting daemon";
23
23
+
wantedBy = [ "multi-user.target" ];
24
24
+
path = [ pkgs.udevil ];
25
25
+
serviceConfig.ExecStart = "${pkgs.udevil}/bin/devmon";
26
26
+
};
27
27
+
};
28
28
+
}