about summary refs log tree commit diff
path: root/nixos/modules/services
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2017-10-03 06:43:40 -0500
committerWill Dietz <w@wdtz.org>2018-02-20 10:34:19 -0600
commite5e29284a91cc6b3f18ab5525b144a219b6d8d3f (patch)
tree6d5dfa5eeedbb4933f50770e4fedce106cf8dcd6 /nixos/modules/services
parent39ff4984183e098a6bf52abdd8378e468d450792 (diff)
downloadnixlib-e5e29284a91cc6b3f18ab5525b144a219b6d8d3f.tar
nixlib-e5e29284a91cc6b3f18ab5525b144a219b6d8d3f.tar.gz
nixlib-e5e29284a91cc6b3f18ab5525b144a219b6d8d3f.tar.bz2
nixlib-e5e29284a91cc6b3f18ab5525b144a219b6d8d3f.tar.lz
nixlib-e5e29284a91cc6b3f18ab5525b144a219b6d8d3f.tar.xz
nixlib-e5e29284a91cc6b3f18ab5525b144a219b6d8d3f.tar.zst
nixlib-e5e29284a91cc6b3f18ab5525b144a219b6d8d3f.zip
webos: init novacom, novacomd, cmake-modules; add nixos service
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/misc/novacomd.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/novacomd.nix b/nixos/modules/services/misc/novacomd.nix
new file mode 100644
index 000000000000..7cfc68d2b673
--- /dev/null
+++ b/nixos/modules/services/misc/novacomd.nix
@@ -0,0 +1,31 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+let
+
+  cfg = config.services.novacomd;
+
+in {
+
+  options = {
+    services.novacomd = {
+      enable = mkEnableOption "Novacom service for connecting to WebOS devices";
+    };
+  };
+
+  config = mkIf cfg.enable {
+    environment.systemPackages = [ pkgs.webos.novacom ];
+
+    systemd.services.novacomd = {
+      description = "Novacom WebOS daemon";
+      wantedBy = [ "multi-user.target" ];
+
+      serviceConfig = {
+        ExecStart = "${pkgs.webos.novacomd}/sbin/novacomd";
+      };
+    };
+  };
+
+  meta.maintainers = with maintainers; [ dtzWill ];
+}