Skip to content

Commit

Permalink
feat(programs): add alejandra
Browse files Browse the repository at this point in the history
  • Loading branch information
yunfachi committed Jul 30, 2024
1 parent 2a4607d commit 3dfdc0f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
9 changes: 9 additions & 0 deletions modules/programs/alejandra.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
module-functions,
hm,
pkgs,
...
}:
module-functions.module "programs" "alejandra" {
hm.home.packages = with pkgs; [alejandra];
}
4 changes: 3 additions & 1 deletion modules/programs/codium/extensions.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
module-functions,
hm,
vscode-extensions,
config,
lib,
...
}:
module-functions.module "programs" "codium" {
Expand All @@ -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
Expand Down
8 changes: 8 additions & 0 deletions options/programs/alejandra.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
option-functions,
...
}:
with option-functions;
option "programs" "alejandra" {
enable = enableOption "alejandra" true;
}

0 comments on commit 3dfdc0f

Please sign in to comment.