feat: add gitbutler

This commit is contained in:
Moritz Böhme 2024-06-17 11:12:00 +02:00
parent 8ce8af36de
commit ed9c5111e4
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ config
, pkgs
, lib
, ...
}:
let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.my.programs.gitbutler;
in
{
options.my.programs.gitbutler = {
enable = mkEnableOption "gitbutler";
package = mkOption {
default = pkgs.callPackage ./package.nix { };
type = types.package;
};
};
config = mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
};
}