nixos-config/packages/default.nix

107 lines
3.6 KiB
Nix
Raw Normal View History

2021-07-29 20:21:51 +00:00
{ pkgs ? import <nixpkgs> {} }:
2021-08-24 16:15:26 +00:00
let
pySmartDL = pkgs.callPackage ./development/python/pySmartDL {};
cfscrape = pkgs.callPackage ./development/python/cfscrape {};
2021-08-28 14:49:14 +00:00
system_hotkey = pkgs.callPackage ./development/python/system_hotkey {};
discord-system-electron = pkgs.callPackage ./applications/networking/instant-messengers/discord {
# Wayland
# NOTE: electron under Wayland has no window titlebars
2021-10-22 19:40:21 +00:00
extraStartupArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland";
2021-09-20 09:40:49 +00:00
#extraStartupArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WebRTCPipeWireCapturer";
};
2021-09-06 16:10:14 +00:00
wrapInSandbox = pkgs.callPackage ./sandbox.nix {};
2021-08-24 16:15:26 +00:00
in {
key-mapper = pkgs.callPackage ./tools/games/key-mapper {};
vfio-isolate = pkgs.callPackage ./tools/virtualisation/vfio-isolate {};
mopidy-funkwhale = pkgs.callPackage ./applications/audio/mopidy/funkwhale.nix {};
# Not as clean as I hoped, but it works
2021-08-24 09:36:15 +00:00
gnomeExtensions = pkgs.gnomeExtensions // {
notification-timeout = pkgs.callPackage ./desktop/gnome/extensions/notification-timeout {};
2021-08-24 16:15:26 +00:00
windowisready-remover = pkgs.callPackage ./desktop/gnome/extensions/windowisready-remover {};
};
python3Packages = pkgs.python3Packages // {
pySmartDL = pySmartDL;
cfscrape = cfscrape;
2021-08-28 14:49:14 +00:00
system_hotkey = system_hotkey;
2021-07-29 20:21:51 +00:00
};
replaysorcery = pkgs.callPackage ./tools/games/replaysorcery {};
evdev-proxy = pkgs.callPackage ./tools/virtualisation/evdev-proxy {};
anime4k = pkgs.callPackage ./misc/video/anime4k {};
2021-08-24 16:15:26 +00:00
anime-dl = pkgs.callPackage ./tools/video/animedl {
pySmartDL = pySmartDL;
cfscrape = cfscrape;
};
2021-08-28 14:49:14 +00:00
superpaper = pkgs.callPackage ./applications/desktop/superpaper {
system_hotkey = system_hotkey;
};
2021-10-21 21:44:46 +00:00
discord-wrapped = wrapInSandbox {
2021-09-06 16:10:14 +00:00
name = "discord";
2021-10-21 21:44:46 +00:00
package = pkgs.unstable.discord;
2021-10-22 19:40:21 +00:00
#package = discord-system-electron;
2021-09-06 19:15:24 +00:00
binaryName = "discord";
2021-09-20 09:40:49 +00:00
mountInHome = [ ".config/discord" ".config/BetterDiscord" ];
2021-09-06 16:10:14 +00:00
additionalBlacklist = [ "/mnt" ];
chdirTo = "/home/$USER";
version = "1.0.1";
copyIntoSandbox = [ "share/pixmaps" ];
desktopFileArgs = {
name = "Discord (wrapped)";
#exec = "discord";
icon = "discord";
desktopName = "Discord (wrapped)";
genericName = "Instant Messenger";
categories = "Network;InstantMessaging;";
};
};
2021-09-04 18:17:57 +00:00
2021-09-20 09:40:49 +00:00
sddm-sugar-dark = pkgs.callPackage ./sddm-sugar-dark {};
2021-09-04 18:17:57 +00:00
iptsd = pkgs.callPackage ./tools/daemons/iptsd {};
surface-control = pkgs.callPackage ./tools/system/surface-control {};
2021-09-06 16:10:14 +00:00
trackma = pkgs.callPackage ./tools/video/trackma {};
2021-09-20 09:40:49 +00:00
multimc-wrapped = wrapInSandbox {
name = "multimc";
package = pkgs.multimc;
binaryName = "multimc";
mountInHome = [ ".local/share/multimc" ];
additionalBlacklist = [ "/mnt" ];
chdirTo = "/home/$USER";
extraEnv = {
DRI_PRIME = "1";
};
};
steam-wrapped = wrapInSandbox {
name = "steam";
package = pkgs.steam;
binaryName = "steam";
mountInHome = [ ".steam" ".local/share/Steam" ];
additionalBlacklist = [ "/mnt" ];
additionalMounts = [ "/mnt/Storage/Games/SteamLibrary" ];
chdirTo = "/home/$USER";
extraEnv = {
DRI_PRIME = "1";
};
copyIntoSandbox = [ "/share" ];
};
gajim-mainwindow = pkgs.callPackage ./applications/networking/instant-messengers/gajim {
nbxmpp = pkgs.python3Packages.nbxmpp.overrideAttrs (old: {
src = pkgs.fetchFromGitLab {
domain = "dev.gajim.org";
owner = "gajim";
repo = "python-nbxmpp";
rev = "master";
sha256 = "1vifb68d47ihzm86iv4aqjh84wcxp5xmggfxwajwmls5mqi420yn";
};
});
};
swaync = pkgs.callPackage ./tools/desktop/swaync {};
2021-07-29 20:21:51 +00:00
}