style: Align formatting and organize imports

This commit is contained in:
Tristan D. 2024-10-11 02:12:15 +02:00
parent fe9b420f30
commit 1d325819ee
Signed by: tristan
SSH key fingerprint: SHA256:3RU4RLOoM8oAjFU19f1W6t8uouZbA7GWkaSW6rjp1k8
3 changed files with 23 additions and 21 deletions

View file

@ -192,18 +192,19 @@
# list paths # list paths
pkgs-paths-list = pkgs.lib.fileset.toList (pkgs.lib.fileset.fromSource (pkgs.lib.sources.sourceFilesBySuffices ./pkgs [ ".nix" ])); pkgs-paths-list = pkgs.lib.fileset.toList (pkgs.lib.fileset.fromSource (pkgs.lib.sources.sourceFilesBySuffices ./pkgs [ ".nix" ]));
# filename-extension parsed out # filename-extension parsed out
pkgs-paths = (builtins.map pkgs-paths =
(path: { builtins.map
name = (pkgs.lib.strings.removeSuffix ".nix" (builtins.baseNameOf path)); (path: {
path = path; name = pkgs.lib.strings.removeSuffix ".nix" (builtins.baseNameOf path);
}) path = path;
pkgs-paths-list); })
pkgs-paths-list;
# import each path # import each path
imported-pkgs = (pkgs.lib.attrsets.mergeAttrsList (builtins.map imported-pkgs = pkgs.lib.attrsets.mergeAttrsList (builtins.map
(pkg: { (pkg: {
"${pkg.name}" = pkgs.callPackage pkg.path { }; "${pkg.name}" = pkgs.callPackage pkg.path { };
}) })
pkgs-paths)); pkgs-paths);
in in
imported-pkgs; imported-pkgs;
diskoConfigurations = { diskoConfigurations = {

View file

@ -28,7 +28,7 @@
]; ];
}; };
xdg.desktopEntries= { xdg.desktopEntries = {
steam-15 = { steam-15 = {
name = "Steam (1.5 Scaling)"; name = "Steam (1.5 Scaling)";
type = "Application"; type = "Application";
@ -59,7 +59,6 @@
bitwarden bitwarden
airshipper airshipper
ardour ardour
# blender
brave brave
cavalier cavalier
ffmpeg ffmpeg
@ -70,7 +69,6 @@
jellyfin-mpv-shim jellyfin-mpv-shim
warp-terminal warp-terminal
libsForQt5.kasts libsForQt5.kasts
# miraclecast
krita krita
kdePackages.kate kdePackages.kate
kdePackages.kdenlive kdePackages.kdenlive
@ -81,7 +79,6 @@
nextcloud-client nextcloud-client
onlyoffice-bin onlyoffice-bin
protonup-qt protonup-qt
# rustdesk
signal-desktop signal-desktop
webcord-vencord webcord-vencord
tome4 tome4
@ -89,15 +86,21 @@
gst_all_1.gst-vaapi gst_all_1.gst-vaapi
waypipe waypipe
veracrypt veracrypt
# deadbeef-with-plugins
lutris lutris
heroic heroic
# qbittorrent
unar
fuse # TODO Why needed ?
pcsx2
# flightgear
kdePackages.konversation kdePackages.konversation
unar
fuse
qbittorrent
pcsx2
xdelta
winetricks
# blender
# miraclecast
# rustdesk
# deadbeef-with-plugins
# flightgear
# orbiter
]; ];
}; };
} }

View file

@ -6,7 +6,6 @@
, portaudio , portaudio
, ,
}: }:
let let
python3 = python311.override { python3 = python311.override {
self = python3; self = python3;
@ -30,8 +29,7 @@ python3.pkgs.buildPythonApplication {
build-system = with python3.pkgs; [ setuptools-scm ]; build-system = with python3.pkgs; [ setuptools-scm ];
dependencies = dependencies = with python3.pkgs;
with python3.pkgs;
[ [
aiohappyeyeballs aiohappyeyeballs
backoff backoff