From b3dc31fac86e542f788158cf80476c7194d69361 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 21 Apr 2023 07:53:17 -0400 Subject: bit of cleanup --- flake.nix | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 9319a7a..fad62f1 100644 --- a/flake.nix +++ b/flake.nix @@ -23,6 +23,10 @@ inputs.nixpkgs.follows = "nixpkgs"; inputs.flake-compat.follows = "flake-compat"; }; + haumea = { + url = "github:nix-community/haumea"; + inputs.nixpkgs.follows = "nixpkgs"; + }; home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; @@ -68,18 +72,29 @@ self, nixpkgs, agenix, + haumea, getchoo, flake-utils, openwrt-imagebuilder, pre-commit-hooks, ... }: let - getchooLib = getchoo.lib (inputs // {inherit self;}); - + inherit (flake-utils.lib) eachDefaultSystem; inherit (getchooLib.configs) mapHMUsers mapHosts; + + getchooLib = let + args = { + users = with haumea.lib; + load { + src = ./users; + loader = loaders.path; + }; + }; + in + getchoo.lib (inputs // args); in - flake-utils.lib.eachDefaultSystem (system: let - pkgs = nixpkgs.legacyPackages.${system}; + eachDefaultSystem (system: let + pkgs = import nixpkgs {inherit system;}; in { checks = { pre-commit-check = pre-commit-hooks.lib.${system}.run { @@ -94,10 +109,12 @@ }; }; - devShells = with pkgs; { + devShells = let + inherit (pkgs) mkShell; + in { default = mkShell { inherit (self.checks.${system}.pre-commit-check) shellHook; - packages = [ + packages = with pkgs; [ actionlint agenix.packages.${system}.agenix alejandra -- cgit v1.2.3