This commit is contained in:
GTrunSec 2022-04-02 13:32:40 -07:00
parent 164beed30d
commit e0d7a66cdc
No known key found for this signature in database
GPG key ID: 2368FAFA4ABDD2A0
2 changed files with 13 additions and 9 deletions

View file

@ -6,10 +6,10 @@ jobs:
tests: tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v2.4.0
- uses: cachix/install-nix-action@v13 - uses: cachix/install-nix-action@v16
with: with:
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20210429_d15a196/install install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.8.0pre20220311_d532269/install
extra_nix_config: experimental-features = nix-command flakes extra_nix_config: experimental-features = nix-command flakes
- name: Run Nix Flake Check - name: Run Nix Flake Check

View file

@ -14,10 +14,14 @@
} @ inputs: } @ inputs:
(inputs.flake-utils.lib.eachDefaultSystem ( (inputs.flake-utils.lib.eachDefaultSystem (
system: let system: let
pkgs = inputs.nixpkgs.legacyPackages."${system}".appendOverlays [ pkgs = import inputs.nixpkgs {
self.overlay overlays = [
inputs.devshell.overlay self.overlays.default
]; inputs.devshell.overlay
];
config.allowUnsupportedSystem = true;
inherit system;
};
lib = pkgs.lib; lib = pkgs.lib;
@ -57,7 +61,7 @@
jobs = import ./jobs {inherit pkgs;}; jobs = import ./jobs {inherit pkgs;};
devShell = with pkgs; devShells.default = with pkgs;
devshell.mkShell devshell.mkShell
{imports = [(devshell.importTOML ./devshell.toml)];}; {imports = [(devshell.importTOML ./devshell.toml)];};
@ -87,7 +91,7 @@
)) ))
// { // {
nixosModules.kubenix = import ./modules; nixosModules.kubenix = import ./modules;
overlay = final: prev: { overlays.default = final: prev: {
kubenix.evalModules = self.evalModules.${prev.system}; kubenix.evalModules = self.evalModules.${prev.system};
# up to date versions of their nixpkgs equivalents # up to date versions of their nixpkgs equivalents
# kubernetes = # kubernetes =