From c528f523c42cde1a83fbd510aeb78468875fb039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Sun, 14 Jan 2024 14:28:02 +0100 Subject: [PATCH] feat: add lib to flake --- .envrc | 1 - flake.nix | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 .envrc diff --git a/.envrc b/.envrc deleted file mode 100644 index 3550a30..0000000 --- a/.envrc +++ /dev/null @@ -1 +0,0 @@ -use flake diff --git a/flake.nix b/flake.nix index 929e34f..f46e355 100644 --- a/flake.nix +++ b/flake.nix @@ -20,14 +20,14 @@ # module parameters provide easy access to attributes of the same # system. - # Equivalent to inputs'.nixpkgs.legacyPackages.hello; - packages.default = pkgs.hello; + packages.lib = import ./lib.nix { inherit pkgs; }; }; flake = { # The usual flake attributes can be defined here, including system- # agnostic ones like nixosModule and system-enumerating ones, although # those are more easily expressed in perSystem. + lib = import ./lib.nix; }; }; }