mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
refactor: make the whole thing more generic
This commit is contained in:
79
modules/home-manager/packages/default.nix
Normal file
79
modules/home-manager/packages/default.nix
Normal 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
|
||||
];
|
||||
}
|
||||
43
modules/home-manager/packages/hid-fanatecff-tools.nix
Normal file
43
modules/home-manager/packages/hid-fanatecff-tools.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
4
modules/home-manager/packages/ranger.conf
Normal file
4
modules/home-manager/packages/ranger.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
set show_hidden true
|
||||
set vcs_aware true
|
||||
set preview_images true
|
||||
set preview_images_method kitty
|
||||
6
modules/home-manager/packages/threema-desktop.nix
Normal file
6
modules/home-manager/packages/threema-desktop.nix
Normal 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
|
||||
'';
|
||||
})
|
||||
Reference in New Issue
Block a user