From 9e366d62a8b89ae48ce4c5feae6765c567ceb4b3 Mon Sep 17 00:00:00 2001 From: DavHau Date: Wed, 12 Jul 2023 18:25:25 +0200 Subject: [PATCH] chore: export packages in flake --- flake.nix | 5 ++++- packages.nix | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 packages.nix diff --git a/flake.nix b/flake.nix index 76eb25b46..c84a8e522 100644 --- a/flake.nix +++ b/flake.nix @@ -10,8 +10,11 @@ }; outputs = inputs@{ flake-parts, ... }: - flake-parts.lib.mkFlake { inherit inputs; } ({ lib, config, ... }: { + flake-parts.lib.mkFlake { inherit inputs; } ({ lib, config, self, ... }: { systems = lib.systems.flakeExposed; + imports = [ + ./packages.nix + ]; flake = { nixosConfigurations.installer = lib.nixosSystem { system = "x86_64-linux"; diff --git a/packages.nix b/packages.nix new file mode 100644 index 000000000..f6ced25bb --- /dev/null +++ b/packages.nix @@ -0,0 +1,7 @@ +{ self, ... }: { + flake.packages.x86_64-linux = { + inherit (self.nixosConfigurations.installer.config.formats) + install-iso + ; + }; +}