Skip to content

Commit

Permalink
Update flake inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Jul 19, 2023
1 parent e87fabf commit f07d647
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 34 deletions.
24 changes: 12 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 31 additions & 22 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};

outputs = inputs@{ self, auto-dark-mode, darwin, devenv, flake-utils, home-manager, nixpkgs }:
outputs =
{ self
, auto-dark-mode
, darwin
, devenv
, flake-utils
, home-manager
, nixpkgs
}@inputs:
let
mkDarwinSystem = system: darwin.lib.darwinSystem {
inherit system;
Expand All @@ -34,28 +42,29 @@
ci = mkDarwinSystem "x86_64-darwin";
work = mkDarwinSystem "aarch64-darwin";
};

} // flake-utils.lib.eachSystem [ "aarch64-darwin" "x86_64-darwin" ]
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [
({ pkgs, ... }: {
packages = [
pkgs.gitleaks
];
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [
({ pkgs, ... }: {
packages = [
pkgs.gitleaks
];

pre-commit.hooks = {
luacheck.enable = true;
nixpkgs-fmt.enable = true;
stylua.enable = true;
yamllint.enable = true;
};
})
];
};
});
pre-commit.hooks = {
luacheck.enable = true;
nixpkgs-fmt.enable = true;
stylua.enable = true;
yamllint.enable = true;
};
})
];
};
});
}

0 comments on commit f07d647

Please sign in to comment.