From 0673a1567fbd4a52c3b3df05886efdf1270c39aa Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Thu, 25 Dec 2025 21:48:13 +0100 Subject: [PATCH] fix: move flake.nixosModules and flake.lib outside perSystem block --- flake.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index 465f510..702676f 100644 --- a/flake.nix +++ b/flake.nix @@ -124,6 +124,14 @@ } ); + flake.nixosModules = { + pgbackrest = ./modules/pgbackrest.nix; + }; + + flake.lib = { + constants = import ./lib/constants.nix; + }; + perSystem = { pkgs, system, @@ -144,14 +152,7 @@ "build-switch" "rollback" ]; - in { - flake.nixosModules = { - pgbackrest = ./modules/pgbackrest.nix; - }; - - flake.lib = { - constants = import ./lib/constants.nix; - }; + in { apps = builtins.listToAttrs ( map (n: {