about summary refs log tree commit diff
path: root/home/packages
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--home/packages/default.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/home/packages/default.nix b/home/packages/default.nix
new file mode 100644
index 0000000..806ce31
--- /dev/null
+++ b/home/packages/default.nix
@@ -0,0 +1,18 @@
+{ config, lib, pkgs, ... }:
+let cfg = config.my.home.packages;
+in {
+  options.my.home.packages = with lib; {
+    enable = mkEnableOption "user packages";
+    additionalPackages = mkOption {
+      type = with types; listOf package;
+      default = [ ];
+      example = literalExample ''
+        with pkgs; [
+          pavucontrol
+        ]
+      '';
+    };
+  };
+  config.home.packages = with pkgs;
+    lib.mkIf cfg.enable ([ util-linux jq ripgrep ] ++ cfg.additionalPackages);
+}