Skip to content

Commit 8fdf9b7

Browse files
committed
git.hooks: move to extra modules
Move the git.hooks module out of the core module set.
1 parent a5563f8 commit 8fdf9b7

3 files changed

Lines changed: 2 additions & 1 deletion

File tree

modules/modules.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ let
1616
branch = "master";
1717
}];
1818
}
19-
./git-hooks.nix
2019
];
2120

2221
pkgsModule = { config, ... }: {
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
git-hooks-1 =
55
let
66
shell1 = devshell.mkShell {
7+
imports = [ ../../extra/git/hooks.nix ];
78
devshell.name = "git-hooks-1a";
89
git.hooks.enable = true;
910
git.hooks.pre-commit.text = ''
@@ -13,6 +14,7 @@
1314
};
1415

1516
shell2 = devshell.mkShell {
17+
imports = [ ../../extra/git/hooks.nix ];
1618
devshell.name = "git-hooks-1b";
1719
git.hooks.enable = true;
1820
};

0 commit comments

Comments
 (0)