diff options
| author | seth <[email protected]> | 2023-05-08 13:55:26 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-05-08 13:55:26 -0400 |
| commit | 8abb7764f8343fcd730a1fe6bf8d2cb32d43dc79 (patch) | |
| tree | 6d29952ad950e4c7423b6953eed7e8616e6f335a /flake | |
| parent | e9ac656f9886205fce36f9d7502676826d126e4b (diff) | |
flake: move flake modules to modules/
Diffstat (limited to 'flake')
| -rw-r--r-- | flake/ci.nix | 56 | ||||
| -rw-r--r-- | flake/default.nix | 13 | ||||
| -rw-r--r-- | flake/dev.nix | 47 |
3 files changed, 0 insertions, 116 deletions
diff --git a/flake/ci.nix b/flake/ci.nix deleted file mode 100644 index 91dc397..0000000 --- a/flake/ci.nix +++ /dev/null @@ -1,56 +0,0 @@ -{ - self, - inputs, - ... -}: let - inherit (inputs) hercules-ci-effects nixpkgs; -in { - imports = [ - hercules-ci-effects.flakeModule - ]; - - hercules-ci = { - flake-update = { - enable = true; - when = { - hour = [0]; - minute = 0; - }; - }; - }; - - herculesCI = let - inherit - (import - (hercules-ci-effects + "/vendor/hercules-ci-agent/default-herculesCI-for-flake.nix")) - flakeToOutputs - ; - in rec { - ciSystems = [ - "x86_64-linux" - "aarch64-linux" - ]; - - onPush = { - default = { - outputs = with builtins; - with nixpkgs.lib; let - # use defaults, but only evaluate hosts - defaults = - removeAttrs - (flakeToOutputs self { - ciSystems = genAttrs ciSystems (_: {}); - }) - ["nixosConfigurations" "packages"]; - - evaluate = mapAttrs (_: v: - seq - v.config.system.build.toplevel - v._module.args.pkgs.emptyFile) - self.nixosConfigurations; - in - mkForce (defaults // evaluate); - }; - }; - }; -} diff --git a/flake/default.nix b/flake/default.nix deleted file mode 100644 index 29c6c63..0000000 --- a/flake/default.nix +++ /dev/null @@ -1,13 +0,0 @@ -_: { - imports = [ - ./ci.nix - ./dev.nix - ]; - - systems = [ - "x86_64-linux" - "aarch64-linux" - "x86_64-darwin" - "aarch64-darwin" - ]; -} diff --git a/flake/dev.nix b/flake/dev.nix deleted file mode 100644 index 712f334..0000000 --- a/flake/dev.nix +++ /dev/null @@ -1,47 +0,0 @@ -{ - self, - inputs, - ... -}: let - inherit (inputs) nil pre-commit-hooks ragenix; -in { - perSystem = { - pkgs, - system, - ... - }: { - checks = { - pre-commit-check = pre-commit-hooks.lib.${system}.run { - src = ./..; - hooks = { - actionlint.enable = true; - alejandra.enable = true; - deadnix.enable = true; - nil.enable = true; - statix.enable = true; - stylua.enable = true; - }; - }; - }; - - devShells = let - inherit (pkgs) mkShell; - in { - default = mkShell { - inherit (self.checks.${system}.pre-commit-check) shellHook; - packages = with pkgs; [ - actionlint - alejandra - deadnix - just - nil.packages.${system}.nil - ragenix.packages.${system}.ragenix - statix - stylua - ]; - }; - }; - - formatter = pkgs.alejandra; - }; -} |
