summary refs log tree commit diff
path: root/nixos/modules/services/desktops
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2017-09-01 15:04:59 +0200
committerJan Tojnar <jtojnar@gmail.com>2017-11-15 14:02:37 +0100
commite1b8636181c0d3df950c32c5b2b3d7ce50a2f3c6 (patch)
treefe2dfb66f851cc30e9c40c232d0b631d38ceb940 /nixos/modules/services/desktops
parentabb17136de1c5d37d9b15301194322bb38b20bd8 (diff)
downloadnixlib-e1b8636181c0d3df950c32c5b2b3d7ce50a2f3c6.tar
nixlib-e1b8636181c0d3df950c32c5b2b3d7ce50a2f3c6.tar.gz
nixlib-e1b8636181c0d3df950c32c5b2b3d7ce50a2f3c6.tar.bz2
nixlib-e1b8636181c0d3df950c32c5b2b3d7ce50a2f3c6.tar.lz
nixlib-e1b8636181c0d3df950c32c5b2b3d7ce50a2f3c6.tar.xz
nixlib-e1b8636181c0d3df950c32c5b2b3d7ce50a2f3c6.tar.zst
nixlib-e1b8636181c0d3df950c32c5b2b3d7ce50a2f3c6.zip
dleyna-server: init at 0.6.0
Diffstat (limited to 'nixos/modules/services/desktops')
-rw-r--r--nixos/modules/services/desktops/dleyna-server.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/nixos/modules/services/desktops/dleyna-server.nix b/nixos/modules/services/desktops/dleyna-server.nix
new file mode 100644
index 000000000000..9a131a5e700f
--- /dev/null
+++ b/nixos/modules/services/desktops/dleyna-server.nix
@@ -0,0 +1,28 @@
+# dleyna-server service.
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+{
+  ###### interface
+  options = {
+    services.dleyna-server = {
+      enable = mkOption {
+        type = types.bool;
+        default = false;
+        description = ''
+          Whether to enable dleyna-server service, a DBus service
+          for handling DLNA servers.
+        '';
+      };
+    };
+  };
+
+
+  ###### implementation
+  config = mkIf config.services.dleyna-server.enable {
+    environment.systemPackages = [ pkgs.dleyna-server ];
+
+    services.dbus.packages = [ pkgs.dleyna-server ];
+  };
+}