Skip to content

Commit

Permalink
packages.drv-paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Dec 15, 2024
1 parent 9ab3e26 commit 033e28a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions drv-paths.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{ self, lib, ... }:
{
perSystem =
{ pkgs, ... }:
{
packages.drv-paths =
self.nixosConfigurations
|> lib.attrValues
|> map (
lib.getAttrFromPath [
"config"
"system"
"build"
"toplevel"
"drvPath"
]
)
|> map builtins.unsafeDiscardStringContext
|> lib.concatStringsSep "\n"
|> (pkgs.writeText "drv-paths");
};
}
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
./boot-message.nix
./catppuccin.nix
./codeberg.nix
./drv-paths.nix
./fmt.nix
./git-hooks.nix
./meta.nix
Expand Down

0 comments on commit 033e28a

Please sign in to comment.