diff --git a/flake.lock b/flake.lock index 66a481c..ac4d416 100644 --- a/flake.lock +++ b/flake.lock @@ -16,6 +16,22 @@ "type": "github" } }, + "flake-utils": { + "locked": { + "lastModified": 1623875721, + "narHash": "sha256-A8BU7bjS5GirpAUv4QA+QnJ4CceLHkcXdRp4xITDB0s=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "f7e004a55b120c02ecb6219596820fcd32ca8772", + "type": "github" + }, + "original": { + "owner": "numtide", + "ref": "master", + "repo": "flake-utils", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -72,6 +88,7 @@ "root": { "inputs": { "emacs-overlay": "emacs-overlay", + "flake-utils": "flake-utils", "home-manager": "home-manager", "nixpkgs": "nixpkgs", "nixpkgs-unstable": "nixpkgs-unstable" diff --git a/flake.nix b/flake.nix index fb30b17..22b50a4 100644 --- a/flake.nix +++ b/flake.nix @@ -29,6 +29,13 @@ ref = "release-21.05"; inputs.nixpkgs.follows = "nixpkgs"; }; + + flake-utils = { + type = "github"; + owner = "numtide"; + repo = "flake-utils"; + ref = "master"; + }; }; outputs = { self, nixpkgs, home-manager, ... } @inputs: { @@ -112,5 +119,9 @@ }; }; - }; + } // inputs.flake-utils.lib.eachDefaultSystem (system: { + packages = + inputs.flake-utils.lib.flattenTree + (import ./pkgs { pkgs = import nixpkgs { inherit system; }; }); + }); }