diff --git a/flake.nix b/flake.nix index 486d57d..0632709 100644 --- a/flake.nix +++ b/flake.nix @@ -53,7 +53,15 @@ ''; }; - nixosModules.default = { config }: + + + devShells.default = pkgs.mkShell { + shellHook = "${packages.default.preBuild}"; + inherit (packages.default) + nativeBuildInputs buildInputs LIBCLANG_PATH; + }; + }) // { + nixosModules.default = { config, lib, ... }: with lib; let cfg = config.services.gnome-autounlock-keyring; in { @@ -72,11 +80,5 @@ }; }; }; - - devShells.default = pkgs.mkShell { - shellHook = "${packages.default.preBuild}"; - inherit (packages.default) - nativeBuildInputs buildInputs LIBCLANG_PATH; - }; - }); + }; }