Skip to content

Commit 3dfdc0f

Browse files
committed
feat(programs): add alejandra
1 parent 2a4607d commit 3dfdc0f

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

modules/programs/alejandra.nix

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
module-functions,
3+
hm,
4+
pkgs,
5+
...
6+
}:
7+
module-functions.module "programs" "alejandra" {
8+
hm.home.packages = with pkgs; [alejandra];
9+
}

modules/programs/codium/extensions.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
module-functions,
33
hm,
44
vscode-extensions,
5+
config,
6+
lib,
57
...
68
}:
79
module-functions.module "programs" "codium" {
@@ -13,7 +15,7 @@ module-functions.module "programs" "codium" {
1315
wakatime.vscode-wakatime # WakaTime
1416
leonardssh.vscord # Discord RPC
1517

16-
kamadorueda.alejandra # Nix Formatter
18+
(lib.mkIf config.yunfachi.programs.alejandra.enable kamadorueda.alejandra) # Nix Formatter
1719
jnoortheen.nix-ide # Nix Syntax Highlight and more
1820

1921
github.vscode-github-actions # Github Actions

options/programs/alejandra.nix

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
option-functions,
3+
...
4+
}:
5+
with option-functions;
6+
option "programs" "alejandra" {
7+
enable = enableOption "alejandra" true;
8+
}

0 commit comments

Comments
 (0)