diff options
author | sefidel <contact@sefidel.net> | 2024-02-12 04:08:59 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2024-02-12 04:08:59 +0900 |
commit | e1b3e5a9c2f7e04740f7661b1a1dc7c70c4d8e36 (patch) | |
tree | ccdf30eca964e3a718d84e148436e5fd85951176 | |
parent | 1667225338871c538eca3d68b401c0dfe5e5071d (diff) | |
download | nixrc-e1b3e5a9c2f7e04740f7661b1a1dc7c70c4d8e36.tar.gz nixrc-e1b3e5a9c2f7e04740f7661b1a1dc7c70c4d8e36.zip |
feat(flake): use lib functions to generate hydraJobs
-rw-r--r-- | flake.nix | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/flake.nix b/flake.nix index d36a946..a58ba40 100644 --- a/flake.nix +++ b/flake.nix @@ -49,21 +49,15 @@ (self: super: { my = import ./lib { inherit inputs; lib = self; }; }); in { + lib = lib.my; + nixosConfigurations = import ./nixos inputs; homeConfigurations = import ./home inputs; colmena = self.lib.mkColmenaFromNixOSConfigurations self.nixosConfigurations; - lib = lib.my; - - hydraJobs = lib.mapAttrs' (name: pname: { - name = pname; - value = self.nixosConfigurations.${name}.config.system.build.toplevel; - }) (lib.genAttrs (builtins.attrNames self.nixosConfigurations) (name: "nixos-${name}")); - # // lib.mapAttrs' (name: pname: { - # name = pname; - # value = self.homeConfigurations.${name}.activationPackage; - # }) (lib.genAttrs (builtins.attrNames self.homeConfigurations) (name: "home-${name}")); + hydraJobs = self.lib.mkHydraFromNixOSConfigurations self.nixosConfigurations; + # // self.lib.mkHydraFromHomeConfigurations self.homeConfigurations; }; } |