about summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-02 18:09:26 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-02 18:09:26 -0700
commitf98a6ffe7353fad1fda2f59ef79decf17c1c4f2c (patch)
tree9ec0c1596a23ea4c1d4265c93cccfea06684ac78 /home
parentmodules: fix configuration for drone-runner-exec (diff)
downloadworld-f98a6ffe7353fad1fda2f59ef79decf17c1c4f2c.tar.gz
home: install the drone CLI
Diffstat (limited to 'home')
-rw-r--r--home/default.nix1
-rw-r--r--home/drone-cli/default.nix8
2 files changed, 9 insertions, 0 deletions
diff --git a/home/default.nix b/home/default.nix
index 1f0dd9c..3cdce3c 100644
--- a/home/default.nix
+++ b/home/default.nix
@@ -5,6 +5,7 @@
     ./beets
     ./direnv
     ./documentation
+    ./drone-cli
     ./element
     ./emacs
     ./eog
diff --git a/home/drone-cli/default.nix b/home/drone-cli/default.nix
new file mode 100644
index 0000000..2d0018b
--- /dev/null
+++ b/home/drone-cli/default.nix
@@ -0,0 +1,8 @@
+{ config, lib, pkgs, ... }:
+let cfg = config.my.home.drone-cli;
+in {
+  options.my.home.drone-cli = with lib; {
+    enable = mkEnableOption "drone-cli configuration";
+  };
+  config.home.packages = with pkgs; lib.mkIf cfg.enable ([ drone-cli ]);
+}