1
0
Fork 0
nixos-config/overlays/pkgSets.nix

162 lines
3.1 KiB
Nix
Raw Normal View History

2020-05-27 13:20:08 +00:00
self: super: {
# pkgs assumed to be present on a non nixos host
2022-03-07 16:13:18 +00:00
nixFlakes = self.writeShellScriptBin "flix" ''exec ${self.nix}/bin/nix --log-format bar-with-logs "$@"'';
2020-05-27 13:20:08 +00:00
core-system-pkgs = {
2022-03-08 01:42:46 +00:00
inherit
(self)
gitFull
gnumake
mkpasswd
file
wget
curl
2022-05-31 22:52:49 +00:00
wireguard-tools
2022-03-08 01:42:46 +00:00
gnupg
mutt
bind
liboping
psmisc
unzip
rename
whois
lsof
parted
python3
binutils
ntfsprogs
neovim
2022-08-09 21:01:03 +00:00
ventoy-bin
2021-03-20 11:42:22 +00:00
;
2020-05-27 13:20:08 +00:00
};
extra-system-pkgs = {
inherit (self.python3Packages) qrcode;
2022-03-08 01:42:46 +00:00
inherit
(self)
htop
2022-03-15 12:51:00 +00:00
btop
2022-03-08 01:42:46 +00:00
tree
pwgen
borgbackup
inotifyTools
direnv
socat
nmap
ncdu
tcpdump
tmux
tig
exa
fzf
fd
bat
ripgrep
ranger
pass
sshuttle
vnstat
entr
libargon2
mblaze
niv
compsize
mediainfo
asciinema
gomuks
nix-output-monitor
fdroidserver
jq
cachix
nixFlakes
2021-03-20 11:42:22 +00:00
;
2020-05-27 13:20:08 +00:00
};
my-home-pkgs = {
2020-06-09 08:14:53 +00:00
print215 = super.writeShellScriptBin "print215" ''
2020-05-27 13:20:08 +00:00
scp "$@" ag-forward:
ssh ag-forward lpr -Zduplex -r "$@"
'';
2020-06-09 08:14:53 +00:00
print215single = super.writeShellScriptBin "print215single" ''
2020-05-27 13:20:08 +00:00
scp "$@" ag-forward:
ssh ag-forward lpr -r "$@"
'';
2020-07-03 16:13:13 +00:00
mytmux = super.writeShellScriptBin "mytmux" ''
2021-03-20 11:42:22 +00:00
session=$(${self.tmux}/bin/tmux ls | grep -v attached | head -1 | cut -f1 -d:)
if [[ -n $session ]]; then
exec ${self.tmux}/bin/tmux attach -t $session;
else
exec ${self.tmux}/bin/tmux;
fi
2020-07-03 16:13:13 +00:00
'';
2020-05-27 13:20:08 +00:00
};
desktop-pkgs = {
2022-03-08 01:42:46 +00:00
inherit
(self)
2022-06-01 10:04:15 +00:00
dconf
2022-03-08 01:42:46 +00:00
lm_sensors
xwayland
xdg_utils
libnotify
kassandra
shotcut
mlt
audacity
paprefs
wl-clipboard
dconf2nix
2022-09-29 20:19:32 +00:00
chrysalis
2022-03-08 01:42:46 +00:00
;
2021-07-13 22:40:50 +00:00
executor = self.gnomeExtensions.executor.overrideAttrs (old: {
2022-03-08 01:42:46 +00:00
postInstall =
(old.postInstall or "")
+ ''
substituteInPlace $out/share/gnome-shell/extensions/executor@raujonas.github.io/extension.js --replace "'/bin/bash'" "'bash'"
'';
2021-07-13 22:40:50 +00:00
});
2022-03-08 01:42:46 +00:00
inherit
(self.gnome)
dconf-editor
gnome-tweaks
adwaita-icon-theme
gnome-session
;
2020-05-27 13:20:08 +00:00
};
home-pkgs = {
2022-03-08 01:42:46 +00:00
inherit
(self)
go
gdb
mpc_cli
ncmpcpp
shfmt
astyle
nodejs
tasksh
magic-wormhole
2022-03-15 23:34:10 +00:00
alejandra
2022-03-08 01:42:46 +00:00
rustup
nix-top
ghcWithPackages
ghcid
matrix-commander
upterm
lazygit
gh
2021-03-20 11:42:22 +00:00
;
2022-03-08 01:42:46 +00:00
obelisk = (import self.sources.obelisk {}).command;
2022-10-11 17:08:35 +00:00
pass-fzf = self.writeShellScriptBin "pass-fzf" (builtins.readFile ./pass-fzf.sh);
2020-05-27 13:20:08 +00:00
};
accounting-pkgs = {
2022-03-08 02:19:09 +00:00
inherit (self.haskellPackages) hledger hledger-ui hledger-web;
2022-03-08 04:53:07 +00:00
inherit (self) ledger aqbanking;
2020-05-27 13:20:08 +00:00
};
2022-03-08 01:42:46 +00:00
system-pkgs =
self.core-system-pkgs
// self.extra-system-pkgs
// {
home-manager =
2022-03-08 02:19:09 +00:00
self.callPackage "${self.sources."${self.home-manager-channel}"}/home-manager" {};
2022-03-08 01:42:46 +00:00
};
2020-05-27 13:20:08 +00:00
foreign-home-pkgs = self.extra-system-pkgs;
}