refactor: make the whole thing more generic

This commit is contained in:
2024-04-02 16:28:57 +02:00
parent 7b648e1955
commit 651f3ad808
193 changed files with 763 additions and 521 deletions

View File

@@ -0,0 +1,79 @@
{ pkgs, ... }: {
xdg.configFile."ranger/rc.conf".source = ./ranger.conf;
home.packages = with pkgs; [
# nix
cachix
lorri
# fix for proton games not launching without any error message
libxcrypt
# browsers
chromium
brave
# media
jellyfin-media-player
youtube-dl
tartube
yt-dlp
f3d
mpv
makemkv
handbrake
metadata-cleaner
bitwarden
# chat apps
(import ./threema-desktop.nix { inherit pkgs; })
(vesktop.override { electron = pkgs.electron_29; })
(element-desktop.override { electron = pkgs.electron_29; })
slack
# office
libreoffice
apostrophe # markdown editor
# creative
gimp
inkscape-with-extensions
scribus
audacity
pinta
kdePackages.kdenlive
# friture TODO: broken
blender
openscad-unstable
# development
insomnia
avalonia-ilspy
ghidra
# 3d printing
lpc21isp
dfu-util
cura
# gaming
steam
oversteer
obs-studio
cartridges
bottles
protontricks
mangohud
# utils
gh
git-filter-repo
neofetch
ranger
filezilla
lazydocker
libqalculate
ripgrep
jq
httpie
];
}

View File

@@ -0,0 +1,43 @@
{ lib, stdenv, fetchFromGitHub, pkgs, }:
stdenv.mkDerivation rec {
pname = "hid-fanatecff-tools";
version = "0.1.0";
src = fetchFromGitHub {
owner = "gotzl";
repo = "hid-fanatecff-tools";
rev = "7f9ab82a5e46a60811a9917765ec5d3cdbf0ecbd";
hash = "sha256-urgAMa3xPe6iYLwXavJ5rtjsbtueUG64XPsAlB1x/Y8=";
};
patchPhase = ''
substituteInPlace "tools/fanatec_led_server.py" --replace "#!/usr/bin/python3" "#!/${pkgs.python312}"
rm Makefile
'';
installPhase = ''
mkdir -p $out/share/${pname}
cp . $out/share/${pname}
mkdir -p $out/bin
ln -s $out/share/${pname}/tools/fanatec_led_server $out/bin/${pname}
cp -v dbus/org.fanatec.conf $out/etc/dbus-1/system.d/
cp -v dbus/org.fanatec.service $out/share/dbus-1/system-services/
ln -s dbus/fanatec-input.py $out/bin/fanatec-input
ln -s dbus/fanatec-input.systemd.service $out/lib/systemd/system/fanatec-input.service
'';
meta = with lib; {
description = ''
Helper to access sysfs functions from the hid-fanatec driver
and aims to connect games with the (extended) features of
the CSL Elite Wheel. It is not needed for force-feedback to work.
'';
homepage = "https://github.com/gotzl/hid-fanatecff-tools";
license = licenses.gpl2Only;
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,4 @@
set show_hidden true
set vcs_aware true
set preview_images true
set preview_images_method kitty

View File

@@ -0,0 +1,6 @@
{ pkgs }:
pkgs.threema-desktop.overrideAttrs (prev: {
postFixup = prev.postFixup + ''
echo "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-features=WaylandWindowDecorations}}" >> $out/bin/threema
'';
})