summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2018-12-19 09:00:36 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2018-12-19 09:00:36 +0100
commit9ab61ab8e2c5b7a40f2f0f8a044e6c8d15d10158 (patch)
treeec26979beba499c597f55768464697f20729a96e /nixos/modules/config
parentdb0211c6bc16827a7bcc23f807c6b3703b1452a5 (diff)
parent911d1853ca990a7af6725105e7cda8c24cac025f (diff)
downloadnixpkgs-9ab61ab8e2c5b7a40f2f0f8a044e6c8d15d10158.tar
nixpkgs-9ab61ab8e2c5b7a40f2f0f8a044e6c8d15d10158.tar.gz
nixpkgs-9ab61ab8e2c5b7a40f2f0f8a044e6c8d15d10158.tar.bz2
nixpkgs-9ab61ab8e2c5b7a40f2f0f8a044e6c8d15d10158.tar.lz
nixpkgs-9ab61ab8e2c5b7a40f2f0f8a044e6c8d15d10158.tar.xz
nixpkgs-9ab61ab8e2c5b7a40f2f0f8a044e6c8d15d10158.tar.zst
nixpkgs-9ab61ab8e2c5b7a40f2f0f8a044e6c8d15d10158.zip
Merge staging-next into staging
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/appstream.nix25
-rw-r--r--nixos/modules/config/xdg/sounds.nix22
2 files changed, 47 insertions, 0 deletions
diff --git a/nixos/modules/config/appstream.nix b/nixos/modules/config/appstream.nix
new file mode 100644
index 00000000000..483ac9c3cd7
--- /dev/null
+++ b/nixos/modules/config/appstream.nix
@@ -0,0 +1,25 @@
+{ config, lib, ... }:
+
+with lib;
+{
+  options = {
+    appstream.enable = mkOption {
+      type = types.bool;
+      default = true;
+      description = ''
+        Whether to install files to support the 
+        <link xlink:href="https://www.freedesktop.org/software/appstream/docs/index.html">AppStream metadata specification</link>.
+      '';
+    };
+  };
+
+  config = mkIf config.appstream.enable {
+    environment.pathsToLink = [ 
+      # per component metadata
+      "/share/metainfo" 
+      # legacy path for above
+      "/share/appdata" 
+    ];
+  };
+
+}
diff --git a/nixos/modules/config/xdg/sounds.nix b/nixos/modules/config/xdg/sounds.nix
new file mode 100644
index 00000000000..148240d631c
--- /dev/null
+++ b/nixos/modules/config/xdg/sounds.nix
@@ -0,0 +1,22 @@
+{ config, lib, ... }:
+
+with lib;
+{
+  options = {
+    xdg.sounds.enable = mkOption {
+      type = types.bool;
+      default = true;
+      description = ''
+        Whether to install files to support the
+        <link xlink:href="https://www.freedesktop.org/wiki/Specifications/sound-theme-spec/">XDG Sound Theme specification</link>.
+      '';
+    };
+  };
+
+  config = mkIf config.xdg.sounds.enable {
+    environment.pathsToLink = [
+      "/share/sounds"
+    ];
+  };
+
+}