about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-02-12 04:08:59 +0900
committersefidel <contact@sefidel.net>2024-02-12 04:08:59 +0900
commite1b3e5a9c2f7e04740f7661b1a1dc7c70c4d8e36 (patch)
treeccdf30eca964e3a718d84e148436e5fd85951176
parent1667225338871c538eca3d68b401c0dfe5e5071d (diff)
downloadnixrc-e1b3e5a9c2f7e04740f7661b1a1dc7c70c4d8e36.tar.gz
nixrc-e1b3e5a9c2f7e04740f7661b1a1dc7c70c4d8e36.zip
feat(flake): use lib functions to generate hydraJobs
-rw-r--r--flake.nix14
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;
     };
 }