Skip to content

Commit

Permalink
Add meta.description to default & neovim
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Sep 13, 2024
1 parent a6251ee commit e77bca4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
13 changes: 9 additions & 4 deletions nix/modules/flake-parts/neovim.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{ inputs, ... }:
{
perSystem = { pkgs, system, ... }: {
packages.neovim =
inputs.nixvim.legacyPackages.${system}.makeNixvimWithModule {
perSystem = { pkgs, system, ... }:
let
neovimWithConfig = inputs.nixvim.legacyPackages.${system}.makeNixvimWithModule {
inherit pkgs;
module = import ../home/neovim/nixvim.nix;
};
};
in
{
packages.neovim = neovimWithConfig.overrideAttrs (oa: {
meta.description = "Neovim with NixVim configuration";
});
};
}
7 changes: 6 additions & 1 deletion nix/modules/flake-parts/toplevel.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@

# Enable 'nix build' to build the home configuration, but without
# activating.
packages.default = self'.legacyPackages.homeConfigurations.${self.nix-dev-home.username}.activationPackage;
packages.default =
let pkg = self'.legacyPackages.homeConfigurations.${self.nix-dev-home.username}.activationPackage;
in pkg.overrideAttrs (oldAttrs: {
meta.description = "Built home configuration for user '${self.nix-dev-home.username}'";
});


# For 'nix fmt'
formatter = pkgs.nixpkgs-fmt;
Expand Down

0 comments on commit e77bca4

Please sign in to comment.