From 3dfdc0f21bf5780ef24b1998af98590964b01d96 Mon Sep 17 00:00:00 2001 From: yunfachi Date: Tue, 30 Jul 2024 13:43:26 +0300 Subject: [PATCH] feat(programs): add alejandra --- modules/programs/alejandra.nix | 9 +++++++++ modules/programs/codium/extensions.nix | 4 +++- options/programs/alejandra.nix | 8 ++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 modules/programs/alejandra.nix create mode 100644 options/programs/alejandra.nix diff --git a/modules/programs/alejandra.nix b/modules/programs/alejandra.nix new file mode 100644 index 0000000..0b627f6 --- /dev/null +++ b/modules/programs/alejandra.nix @@ -0,0 +1,9 @@ +{ + module-functions, + hm, + pkgs, + ... +}: +module-functions.module "programs" "alejandra" { + hm.home.packages = with pkgs; [alejandra]; +} diff --git a/modules/programs/codium/extensions.nix b/modules/programs/codium/extensions.nix index 853723c..7072900 100644 --- a/modules/programs/codium/extensions.nix +++ b/modules/programs/codium/extensions.nix @@ -2,6 +2,8 @@ module-functions, hm, vscode-extensions, + config, + lib, ... }: module-functions.module "programs" "codium" { @@ -13,7 +15,7 @@ module-functions.module "programs" "codium" { wakatime.vscode-wakatime # WakaTime leonardssh.vscord # Discord RPC - kamadorueda.alejandra # Nix Formatter + (lib.mkIf config.yunfachi.programs.alejandra.enable kamadorueda.alejandra) # Nix Formatter jnoortheen.nix-ide # Nix Syntax Highlight and more github.vscode-github-actions # Github Actions diff --git a/options/programs/alejandra.nix b/options/programs/alejandra.nix new file mode 100644 index 0000000..c682fdb --- /dev/null +++ b/options/programs/alejandra.nix @@ -0,0 +1,8 @@ +{ + option-functions, + ... +}: +with option-functions; + option "programs" "alejandra" { + enable = enableOption "alejandra" true; + }