flake: simplify packages setup

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2024-08-25 23:02:26 +02:00
parent 200355c7ec
commit 9d6a0bc327
Signed by: c8h4
GPG key ID: 6817E9C75C0785D7
3 changed files with 12 additions and 13 deletions

View file

@ -142,8 +142,7 @@
checks = {
formatting = treefmt.config.build.check self;
} // (import ./pkgs null pkgs)
// (import ./pkgs/vim-plugins.nix null pkgs);
} // self.packages.${system};
formatter = treefmt.config.build.wrapper;
@ -152,7 +151,7 @@
nativeBuildInputs = with pkgs; [ age nix-tree sops ];
};
packages = (import ./pkgs) null pkgs;
packages = (import ./pkgs pkgs) // (import ./pkgs/vim-plugins.nix pkgs);
})) // (let
machines = {
back = { };

View file

@ -1,11 +1,11 @@
_: super:
{ callPackage, ... }:
{
automation-shell = super.callPackage ./automation-shell.nix { };
dashboard-icons = super.callPackage ./dashboard-icons.nix { };
deploy-sink = super.callPackage ./deploy-sink.nix { };
git-multi-shortlog = super.callPackage ./git-multi-shortlog.nix { };
homer = super.callPackage ./homer { };
neomutt-export-patches = super.callPackage ./neomutt-export-patches.nix { };
sway-background-image = super.callPackage ./sway-background-image.nix { };
dashboard-icons = callPackage ./dashboard-icons.nix { };
automation-shell = callPackage ./automation-shell.nix { };
deploy-sink = callPackage ./deploy-sink.nix { };
git-multi-shortlog = callPackage ./git-multi-shortlog.nix { };
homer = callPackage ./homer { };
neomutt-export-patches = callPackage ./neomutt-export-patches.nix { };
sway-background-image = callPackage ./sway-background-image.nix { };
}

View file

@ -1,7 +1,7 @@
_: super:
{ callPackage, ... }:
{
none-ls-shellcheck-nvim = super.callPackage ({ vimUtils, fetchFromGitHub }:
none-ls-shellcheck-nvim = callPackage ({ vimUtils, fetchFromGitHub }:
vimUtils.buildVimPlugin {
pname = "none-ls-shellcheck.nvim";
version = "2024-03-19";