mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat: add checks to devShell
This commit is contained in:
parent
647a2ae1a8
commit
0a6cf0e006
3 changed files with 41 additions and 13 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -3,3 +3,4 @@ secrets/keys/private-keys-v1.d/
|
||||||
result
|
result
|
||||||
*.~undo-tree~
|
*.~undo-tree~
|
||||||
*.iso
|
*.iso
|
||||||
|
.pre-commit-config.yaml
|
||||||
|
|
|
||||||
|
|
@ -684,16 +684,29 @@ In this section I am creating some attributes that define general concepts of my
|
||||||
homeManagerModules = import ./modules/home;
|
homeManagerModules = import ./modules/home;
|
||||||
|
|
||||||
packages = forEachSystem (pkgs: import ./pkgs { inherit pkgs; });
|
packages = forEachSystem (pkgs: import ./pkgs { inherit pkgs; });
|
||||||
devShells = forEachSystem
|
devShells = forAllSystems (
|
||||||
(pkgs:
|
system:
|
||||||
|
let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
checks = self.checks.${system};
|
||||||
|
in
|
||||||
{
|
{
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
NIX_CONFIG = "experimental-features = nix-command flakes";
|
NIX_CONFIG = "experimental-features = nix-command flakes";
|
||||||
nativeBuildInputs = [ pkgs.nix pkgs.home-manager pkgs.git ];
|
inherit (checks.pre-commit-check) shellHook;
|
||||||
|
buildInputs = checks.pre-commit-check.enabledPackages;
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgs.nix
|
||||||
|
pkgs.home-manager
|
||||||
|
pkgs.git
|
||||||
|
pkgs.just
|
||||||
|
pkgs.age
|
||||||
|
pkgs.ssh-to-age
|
||||||
|
pkgs.sops
|
||||||
|
];
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
# this sets the formatter that is going to be used by nix fmt
|
|
||||||
formatter = forEachSystem (pkgs: pkgs.nixpkgs-fmt);
|
formatter = forEachSystem (pkgs: pkgs.nixpkgs-fmt);
|
||||||
checks = forAllSystems (
|
checks = forAllSystems (
|
||||||
system:
|
system:
|
||||||
|
|
|
||||||
32
flake.nix
32
flake.nix
|
|
@ -199,16 +199,30 @@
|
||||||
homeManagerModules = import ./modules/home;
|
homeManagerModules = import ./modules/home;
|
||||||
|
|
||||||
packages = forEachSystem (pkgs: import ./pkgs { inherit pkgs; });
|
packages = forEachSystem (pkgs: import ./pkgs { inherit pkgs; });
|
||||||
devShells = forEachSystem
|
devShells = forAllSystems (
|
||||||
(pkgs:
|
system:
|
||||||
{
|
let
|
||||||
default = pkgs.mkShell {
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
NIX_CONFIG = "experimental-features = nix-command flakes";
|
checks = self.checks.${system};
|
||||||
nativeBuildInputs = [ pkgs.nix pkgs.home-manager pkgs.git ];
|
in
|
||||||
};
|
{
|
||||||
});
|
default = pkgs.mkShell {
|
||||||
|
NIX_CONFIG = "experimental-features = nix-command flakes";
|
||||||
|
inherit (checks.pre-commit-check) shellHook;
|
||||||
|
buildInputs = checks.pre-commit-check.enabledPackages;
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgs.nix
|
||||||
|
pkgs.home-manager
|
||||||
|
pkgs.git
|
||||||
|
pkgs.just
|
||||||
|
pkgs.age
|
||||||
|
pkgs.ssh-to-age
|
||||||
|
pkgs.sops
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
# this sets the formatter that is going to be used by nix fmt
|
|
||||||
formatter = forEachSystem (pkgs: pkgs.nixpkgs-fmt);
|
formatter = forEachSystem (pkgs: pkgs.nixpkgs-fmt);
|
||||||
checks = forAllSystems (
|
checks = forAllSystems (
|
||||||
system:
|
system:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue