about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-09-25 12:45:55 -0700
committerFranck Cuny <franck@fcuny.net>2022-09-25 12:45:55 -0700
commit7b95db10d56957c2d1111d215e86c1e7a827d85a (patch)
treeb50945d58a73815c350d4cca1eafab2049158400
parentfix(user/blog): update list of ssh keys (diff)
downloadworld-7b95db10d56957c2d1111d215e86c1e7a827d85a.tar.gz
fix(flake): call some programs with `nix run .#tools.<name>`
-rw-r--r--flake.nix22
1 files changed, 10 insertions, 12 deletions
diff --git a/flake.nix b/flake.nix
index d88ecb6..7e8280e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -128,6 +128,16 @@
         };
       });
 
+      packages = forAllSystems (system:
+        let pkgs = nixpkgsFor.${system};
+        in
+        {
+          inherit (inputs.futils.lib) filterPackages flattenTree;
+          tools = import ./tools { inherit pkgs; };
+          ops = import ./ops { inherit pkgs; };
+          users.fcuny = import ./users/fcuny { inherit pkgs; };
+        });
+
       nixosConfigurations = {
         aptos = myLib.mkSystem { hostname = "aptos"; };
         carmel = myLib.mkSystem { hostname = "carmel"; };
@@ -145,16 +155,4 @@
           myLib.mkHomeManagerConfiguration { hostname = "tahoe"; };
       };
     };
-  # in eachMySystem (system:
-  #   let
-  #     pkgs = import inputs.nixpkgs { inherit system; };
-  #     home-manager = inputs.home-manager.defaultPackage."${system}";
-  #   in rec {
-  #     packages = pkgs // {
-  #       inherit home-manager;
-
-  #       tools = import ./tools { inherit pkgs; };
-  #       ops = import ./ops { inherit pkgs; };
-  #       users.fcuny = import ./users/fcuny { inherit pkgs; };
-  #     };
 }