whole flake: remove wrapper-manager

a
This commit is contained in:
Charlie Root 2024-11-01 14:13:48 +01:00
commit 931b8c9c7e
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
8 changed files with 28 additions and 138 deletions

View file

@ -1,9 +1,7 @@
{
imports = [
# ./fmt.nix
./shell.nix
./templates
./lib
./pkgs
];
}

View file

@ -1,31 +0,0 @@
{
inputs,
inputs',
...
}: {
# NOTE: We use flake-parts' easyOverlay module to extend our default packages with some extra packages I want to have.
#
imports = [inputs.flake-parts.flakeModules.easyOverlay];
perSystem = {
config,
lib,
inputs',
pkgs,
...
}: {
# Attributes to add to overlays.default.
# The overlays.default overlay will re-evaluate perSystem with the “prev” (or “super”) overlay argument value
# as the pkgs module argument. The easyOverlay module also adds the final module argument, for the result of applying the overlay.
# When not in an overlay, final defaults to pkgs plus the generated overlay.
# This requires Nixpkgs to be re-evaluated, which is more expensive than setting
# pkgs to a Nixpkgs that already includes the necessary overlays that are required
# for the flake itself.
overlayAttrs = config.packages;
packages = {
fish = import ./extraPackages/fish {inherit inputs lib pkgs;};
helix = import ./extraPackages/helix-wrapped.nix {inherit inputs inputs' lib pkgs;};
};
};
}

View file

@ -1,30 +0,0 @@
{
inputs,
lib,
pkgs,
...
}: let
inherit (lib) concatStringsSep mapAttrsToList;
aliases = import ./aliases.nix {inherit pkgs;};
aliasesAsString =
concatStringsSep "\n"
(mapAttrsToList (k: v: "alias ${k}=\"${v}\"") aliases);
packages = import ./packages.nix {inherit pkgs;};
fish-wrapped = inputs.wrapper-manager.lib.build {
inherit pkgs;
modules = [
{
wrappers.fish-wrapped = {
basePackage = pkgs.fish;
pathAdd = packages;
flags = [
];
};
}
];
};
in
fish-wrapped

View file

@ -1,71 +0,0 @@
{pkgs}: (with pkgs; [
# better cd
zoxide
#better ls
eza
# better cat
bat
# clipboard
yazi
serpl
diff-so-fancy
tig
sesh
mprocs
curlie
entr
procs
sd
# mult
glow
gdb
# dua-cli
dust
kondo
# better grep
ripgrep
# better dig
dogdns
# simply the best fetch tool out there
microfetch
fzf
lldb_19
element
carapace
difftastic
hexyl
gitui
iputils
gnumake
gping
asciinema
inetutils
scc
starship
onefetch
wget
cpufetch
yt-dlp
tealdeer
glow
hyperfine
imagemagick
ffmpeg-full
catimg
nmap
wget
fd
jq
rsync
figlet
unzip
zip
])

View file

@ -1,35 +0,0 @@
{
inputs',
inputs,
lib,
pkgs,
...
}: let
helix-wrapped = inputs.wrapper-manager.lib.build {
inherit pkgs;
modules = [
{
wrappers.nushell-wrapped = {
basePackage = inputs'.helix.packages.default;
pathAdd = with pkgs; [
# C/C++
clang-tools
# Markdown
marksman
# Nix
nil
lldb_19
# Bash
bash-language-server
# Shell
shellcheck
];
};
}
];
};
in
helix-wrapped