2024-03-17 19:18:53 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
config,
|
|
|
|
system,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
let
|
|
|
|
cfg = config.schmittlauch.packages;
|
|
|
|
unstable = inputs.nixos-unstable.legacyPackages.${system};
|
|
|
|
|
|
|
|
graphicsApps =
|
|
|
|
[
|
|
|
|
inkscape
|
|
|
|
darktable
|
|
|
|
exiftool
|
|
|
|
gimp
|
|
|
|
]
|
|
|
|
++ (with gimpPlugins; [
|
|
|
|
fourier
|
|
|
|
lqrPlugin
|
|
|
|
])
|
|
|
|
++ lib.optionals pkgs.stdenv.isLinux [
|
|
|
|
hugin
|
|
|
|
luminanceHDR
|
|
|
|
xournal
|
|
|
|
];
|
|
|
|
|
|
|
|
multimediaApps =
|
|
|
|
[
|
|
|
|
mpv
|
|
|
|
yt-dlp
|
|
|
|
]
|
|
|
|
++ lib.optionals pkgs.stdenv.isLinux [
|
|
|
|
vlc
|
|
|
|
amarok
|
|
|
|
clementine
|
|
|
|
elisa
|
|
|
|
musescore
|
|
|
|
tenacity
|
|
|
|
soundkonverter
|
|
|
|
config.nur.repos.fooker.studio-link
|
|
|
|
];
|
|
|
|
|
|
|
|
cliApps =
|
|
|
|
[
|
2024-06-11 08:38:55 +02:00
|
|
|
coreutils
|
2024-03-17 19:18:53 +01:00
|
|
|
myVim
|
|
|
|
htop
|
|
|
|
tmux
|
|
|
|
httpie
|
|
|
|
ponysay
|
|
|
|
gti
|
|
|
|
tree
|
|
|
|
lsof
|
|
|
|
mosh
|
|
|
|
openssh
|
|
|
|
sshfs-fuse
|
|
|
|
sshuttle
|
2024-07-25 18:10:54 +02:00
|
|
|
cryfs
|
2024-03-17 19:18:53 +01:00
|
|
|
thefuck
|
|
|
|
gnupg
|
|
|
|
unar
|
|
|
|
lzop
|
|
|
|
p7zip
|
|
|
|
pwgen
|
|
|
|
pandoc
|
|
|
|
pdfgrep
|
|
|
|
# zig dependency breaks occasionally, stay on C version for now
|
|
|
|
ncdu_1
|
|
|
|
dos2unix
|
|
|
|
unzip
|
|
|
|
fswatch
|
|
|
|
jq
|
|
|
|
age
|
|
|
|
lnav
|
|
|
|
|
|
|
|
nix-output-monitor # putting this here as a plain `nix` alternative
|
|
|
|
]
|
|
|
|
++ lib.optionals pkgs.stdenv.isLinux [
|
|
|
|
xclip
|
|
|
|
smbnetfs # for FUSE smb mounting
|
|
|
|
psmisc # for killall
|
|
|
|
torsocks
|
|
|
|
agrep
|
|
|
|
reptyr # re-bind running program to other tty
|
|
|
|
config.nur.repos.schmittlauch.lolcommits
|
|
|
|
];
|
|
|
|
|
|
|
|
nixHelpers = [
|
|
|
|
nixpkgs-review
|
|
|
|
unstable.nixfmt-rfc-style
|
|
|
|
nix-top
|
|
|
|
statix
|
|
|
|
];
|
|
|
|
devTools =
|
|
|
|
[
|
|
|
|
curl
|
|
|
|
httpie
|
|
|
|
gcc
|
|
|
|
shellcheck
|
|
|
|
mtr
|
|
|
|
ripgrep
|
2024-07-25 12:26:20 +02:00
|
|
|
fd
|
2024-03-17 19:18:53 +01:00
|
|
|
gitui
|
|
|
|
lazygit
|
|
|
|
pre-commit
|
|
|
|
scriv
|
|
|
|
|
|
|
|
# Haskell
|
|
|
|
ghc
|
|
|
|
cabal2nix
|
|
|
|
]
|
|
|
|
++ lib.optionals pkgs.stdenv.isLinux [
|
|
|
|
gdb
|
|
|
|
strace
|
|
|
|
ltrace
|
|
|
|
valgrind
|
|
|
|
zeal
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonTools = with python3Packages; [
|
2024-07-02 23:42:52 +02:00
|
|
|
python3 # to shadow old macOS python
|
2024-03-17 19:18:53 +01:00
|
|
|
notebook
|
|
|
|
ipython
|
|
|
|
pip
|
|
|
|
numpy
|
|
|
|
matplotlib
|
|
|
|
jedi
|
|
|
|
jedi-language-server
|
|
|
|
black
|
|
|
|
flake8
|
|
|
|
mypy
|
|
|
|
];
|
|
|
|
|
|
|
|
games = [
|
|
|
|
superTuxKart
|
2024-03-18 11:06:21 +01:00
|
|
|
#hedgewars
|
2024-03-17 19:18:53 +01:00
|
|
|
];
|
|
|
|
|
2024-05-10 22:24:41 +02:00
|
|
|
desktopCommon = [
|
|
|
|
keepassxc
|
|
|
|
tigervnc
|
|
|
|
];
|
2024-04-07 01:31:11 +02:00
|
|
|
|
|
|
|
desktopLinux = [
|
2024-03-17 19:18:53 +01:00
|
|
|
firefox
|
|
|
|
chromium
|
|
|
|
falkon
|
|
|
|
thunderbird
|
|
|
|
calibre
|
|
|
|
dino
|
|
|
|
zotero
|
|
|
|
ding
|
|
|
|
aspell
|
|
|
|
aspellDicts.de
|
|
|
|
aspellDicts.en
|
|
|
|
# for kate/KDE applications
|
|
|
|
hunspellDicts.de-de
|
|
|
|
hunspellDicts.en-us
|
|
|
|
hunspellDicts.en-gb-ise
|
|
|
|
seafile-client
|
|
|
|
alacritty
|
|
|
|
libreoffice-qt # fresh with KDE integration
|
|
|
|
backintime-common
|
|
|
|
anki
|
|
|
|
signal-desktop
|
|
|
|
(tor-browser-bundle-bin.override {
|
|
|
|
mediaSupport = true;
|
|
|
|
pulseaudioSupport = pkgs.stdenv.isLinux;
|
|
|
|
})
|
|
|
|
pdfpc
|
|
|
|
quaternion
|
|
|
|
nheko
|
|
|
|
gpxsee
|
|
|
|
subsurface
|
|
|
|
yate
|
|
|
|
# split and merge PDFs in a GUI
|
|
|
|
pdfarranger
|
|
|
|
qbittorrent
|
|
|
|
#(pkgs.pidgin-with-plugins.override {
|
|
|
|
# plugins = [ pkgs.pidginotr ];})
|
|
|
|
|
|
|
|
logseq
|
|
|
|
|
|
|
|
# for Hibiscus banking software
|
|
|
|
jameica
|
|
|
|
#ToDo: which of these drivers is actually used?
|
|
|
|
geckodriver
|
|
|
|
chromedriver
|
|
|
|
];
|
|
|
|
|
|
|
|
kdeTools =
|
2024-07-02 23:43:46 +02:00
|
|
|
[ okteta ]
|
|
|
|
++ (with kdePackages; [
|
2024-03-17 19:18:53 +01:00
|
|
|
okular
|
|
|
|
gwenview
|
|
|
|
yakuake
|
|
|
|
kdeconnect
|
|
|
|
dolphin
|
|
|
|
spectacle
|
|
|
|
kate
|
|
|
|
kleopatra
|
|
|
|
qdirstat
|
|
|
|
ark
|
|
|
|
kwalletmanager
|
2024-07-02 23:43:46 +02:00
|
|
|
#ktouch # TODO: unbreak
|
2024-03-17 19:18:53 +01:00
|
|
|
kcharselect
|
|
|
|
konversation
|
|
|
|
krdc
|
|
|
|
skanlite
|
|
|
|
akonadiconsole
|
|
|
|
tokodon # mastodon client
|
|
|
|
networkmanager-qt
|
|
|
|
kcrash
|
|
|
|
breeze-gtk
|
|
|
|
]);
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.schmittlauch.packages = {
|
|
|
|
graphics = lib.mkEnableOption "Enable a common set of graphics apps";
|
|
|
|
multimedia = lib.mkEnableOption "Enable a common set of multimedia apps";
|
|
|
|
cli = lib.mkOption {
|
|
|
|
description = "Enable a common set of CLI tools";
|
|
|
|
type = lib.types.bool;
|
|
|
|
default = true;
|
|
|
|
};
|
|
|
|
nixHelpers = lib.mkEnableOption "Enable a common set of Nix helper tools";
|
|
|
|
devTools = lib.mkEnableOption "Enable a common set of dev tools";
|
|
|
|
pythonTools = lib.mkEnableOption "Enable a common set of python tools";
|
|
|
|
games = lib.mkEnableOption "Enable some games";
|
2024-04-07 01:31:11 +02:00
|
|
|
desktopCommon = lib.mkOption {
|
|
|
|
description = "GUI desktop applications that work cross-platform and cross-desktop";
|
|
|
|
type = lib.types.bool;
|
|
|
|
default = true;
|
|
|
|
};
|
|
|
|
desktopLinux = lib.mkEnableOption "Enable a common set of desktop applications";
|
2024-03-17 19:18:53 +01:00
|
|
|
kde = lib.mkEnableOption "Enable a common set of KDE applications";
|
|
|
|
};
|
|
|
|
config = {
|
|
|
|
home.packages = lib.flatten (
|
|
|
|
(lib.optional cfg.graphics graphicsApps)
|
|
|
|
++ (lib.optional cfg.multimedia multimediaApps)
|
|
|
|
++ (lib.optional cfg.cli cliApps)
|
|
|
|
++ (lib.optional cfg.nixHelpers nixHelpers)
|
|
|
|
++ (lib.optional cfg.devTools devTools)
|
|
|
|
++ (lib.optional cfg.pythonTools pythonTools)
|
|
|
|
++ (lib.optional cfg.games games)
|
2024-04-07 01:31:11 +02:00
|
|
|
++ (lib.optional cfg.desktopCommon desktopCommon)
|
|
|
|
++ (lib.optional cfg.desktopLinux desktopLinux)
|
2024-03-17 19:18:53 +01:00
|
|
|
++ (lib.optional cfg.kde kdeTools)
|
|
|
|
);
|
|
|
|
|
|
|
|
nixpkgs.overlays = import ../overlays.nix;
|
|
|
|
nixpkgs.config = {
|
2024-09-07 19:17:37 +02:00
|
|
|
|
|
|
|
# (temporarily) permit the usage of libolm
|
|
|
|
permittedInsecurePackages = [
|
|
|
|
"olm-3.2.16"
|
|
|
|
];
|
2024-03-17 19:18:53 +01:00
|
|
|
clementine.spotify = false;
|
|
|
|
vim = {
|
|
|
|
gui = "gtk3";
|
|
|
|
python = true;
|
|
|
|
multibyteSupport = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|