You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
{ inputs = { nixpkgs = { type = "github"; owner = "NixOS"; repo = "nixpkgs"; ref = "nixos-22.11"; };
colmena = { type = "github"; owner = "zhaofengli"; repo = "colmena";
inputs.nixpkgs.follows = "nixpkgs"; };
nixago = { type = "github"; owner = "nix-community"; repo = "nixago";
inputs.nixpkgs.follows = "nixpkgs"; inputs.flake-utils.follows = "utils"; };
pre-commit-hooks = { type = "github"; owner = "cachix"; repo = "pre-commit-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs"; };
sops = { type = "github"; owner = "Mic92"; repo = "sops-nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs-stable.follows = "nixpkgs"; };
utils = { type = "github"; owner = "numtide"; repo = "flake-utils"; };
disko = { type = "github"; owner = "nix-community"; repo = "disko"; inputs.nixpkgs.follows = "nixpkgs"; }; };
outputs = { nixpkgs, utils, ... }@inputs: { colmena = import ./machines.nix inputs; devShell = utils.lib.eachSystemMap utils.lib.allSystems (system: let pkgs = nixpkgs.legacyPackages.${system};
pre-commit-hooks = inputs.pre-commit-hooks.lib.${system}.run { src = ./.; hooks = { nixpkgs-fmt.enable = true; statix.enable = true; shellcheck.enable = true; }; }; in pkgs.mkShell { buildInputs = [ inputs.colmena.defaultPackage.${system} ] ++ (with pkgs; [ bash gitAndTools.git gnutar gzip nixUnstable openssh sops age ]);
shellHook = ''
${pre-commit-hooks.shellHook} '';
}); }; }
|