Compare commits
No commits in common. "b8d905ba8fbf33c15c569d910b18d59b88facbc2" and "c0b061a79df57655abda1f607863164436ae92da" have entirely different histories.
b8d905ba8f
...
c0b061a79d
@ -16,12 +16,7 @@
|
|||||||
};
|
};
|
||||||
"/mnt/Storage" = {
|
"/mnt/Storage" = {
|
||||||
device = "/dev/disk/by-label/storage";
|
device = "/dev/disk/by-label/storage";
|
||||||
fsType = "btrfs";
|
fsType = "ext4";
|
||||||
options = [
|
|
||||||
"noatime"
|
|
||||||
"nodev"
|
|
||||||
"nosuid"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -29,17 +24,20 @@
|
|||||||
gajim-mainwindow
|
gajim-mainwindow
|
||||||
virt-manager qemu scream
|
virt-manager qemu scream
|
||||||
replaysorcery # Custom package
|
replaysorcery # Custom package
|
||||||
|
#evdev-proxy # Custom package
|
||||||
vfio-isolate # Custom Package
|
vfio-isolate # Custom Package
|
||||||
steam-wrapped discord-wrapped # Custom package
|
steam-wrapped discord-wrapped # Custom package
|
||||||
mumble
|
mumble
|
||||||
piper trackma # Custom package
|
piper
|
||||||
|
trackma # Custom package
|
||||||
anime-dl # Custom package
|
anime-dl # Custom package
|
||||||
thunderbird
|
thunderbird
|
||||||
|
#multimc-wrapped # Custom package
|
||||||
#nwg-launchers
|
#nwg-launchers
|
||||||
gnome-podcasts
|
gnome-podcasts
|
||||||
cantata
|
cantata
|
||||||
newsflash
|
newsflash
|
||||||
sublime-music
|
sublime-music-no-test
|
||||||
anki
|
anki
|
||||||
#psst
|
#psst
|
||||||
];
|
];
|
||||||
@ -50,16 +48,7 @@
|
|||||||
primaryScreen = "C27F398";
|
primaryScreen = "C27F398";
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
sway = {
|
sway.enable = true;
|
||||||
enable = true;
|
|
||||||
extraSessionCommands = ''
|
|
||||||
# Pick the dGPU as the first one
|
|
||||||
#DGPU_DRM_NODE=$(ls /sys/bus/pci/devices/0000:01:00.0/drm | grep card)
|
|
||||||
#IGPU_DRM_NODE=$(ls /sys/bus/pci/devices/0000:08:00.0/drm | grep card)
|
|
||||||
|
|
||||||
#export WLR_DRM_DEVICES=/dev/dri/$DGPU_DRM_NODE:/dev/dri/$IGPU_DRM_NODE
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
alacritty.enable = true;
|
alacritty.enable = true;
|
||||||
emacs.enable = true;
|
emacs.enable = true;
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
@ -78,17 +67,7 @@
|
|||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
gamemode.enable = true;
|
gamemode.enable = true;
|
||||||
#gnome.enable = true;
|
gnome.enable = true;
|
||||||
greetd = {
|
|
||||||
enable = false;
|
|
||||||
/*
|
|
||||||
swayExtra = ''
|
|
||||||
output HDMI-A-3 transform 90 anticlockwise
|
|
||||||
|
|
||||||
workspace 1 output HDMI-A-3
|
|
||||||
'';
|
|
||||||
*/
|
|
||||||
};
|
|
||||||
kanshi = let
|
kanshi = let
|
||||||
horizontal = "Samsung Electric Company C27F398 H4ZR101145";
|
horizontal = "Samsung Electric Company C27F398 H4ZR101145";
|
||||||
vertical = "Goldstar Company Ltd IPS235 305NDPHKN600";
|
vertical = "Goldstar Company Ltd IPS235 305NDPHKN600";
|
||||||
@ -126,7 +105,7 @@
|
|||||||
swaync.enable = true;
|
swaync.enable = true;
|
||||||
input-remapper = {
|
input-remapper = {
|
||||||
enable = true;
|
enable = true;
|
||||||
postStartCommand = "${pkgs.input-remapper}/bin/input-remapper-control --command start --preset NOOP --device \"Razer Razer Tartarus V2\"";
|
postStartCommand = "${pkgs.input-remapper}/bin/input-remapper-control --command start --preset NOOP --device \"Razer Razer Tartarus V2\"; exit 0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
system = {
|
system = {
|
||||||
@ -170,7 +149,7 @@
|
|||||||
};
|
};
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
"amd_iommu=on"
|
"amd_iommu=on"
|
||||||
"iommu=on"
|
"iommu=pt"
|
||||||
"sysrq_always_enabled=1"
|
"sysrq_always_enabled=1"
|
||||||
"kvm.ignore_msrs=1"
|
"kvm.ignore_msrs=1"
|
||||||
"kvm.report_ignored_msrs=N"
|
"kvm.report_ignored_msrs=N"
|
||||||
@ -181,7 +160,6 @@
|
|||||||
"nospec"
|
"nospec"
|
||||||
"clocksource=tsc"
|
"clocksource=tsc"
|
||||||
"tsc=reliable"
|
"tsc=reliable"
|
||||||
"pci=noaer"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
extraModulePackages = [ pkgs.linuxPackages_zen.vendor-reset ];
|
extraModulePackages = [ pkgs.linuxPackages_zen.vendor-reset ];
|
||||||
@ -207,7 +185,6 @@
|
|||||||
wayland = true;
|
wayland = true;
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
desktopManager.plasma5.enable = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -229,6 +206,15 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
user.services = {
|
user.services = {
|
||||||
|
scream = {
|
||||||
|
description = "Audio receiver for the Scream virtual network sound card";
|
||||||
|
#wantedBy = [ "default.target" ];
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "simple";
|
||||||
|
ExecStart = "${pkgs.scream}/bin/scream -i virbr0 -o pulse";
|
||||||
|
Restart = "always";
|
||||||
|
};
|
||||||
|
};
|
||||||
replaysorcery-kms = {
|
replaysorcery-kms = {
|
||||||
description = "An open-source, instant-replay solution for Linux; KMS service";
|
description = "An open-source, instant-replay solution for Linux; KMS service";
|
||||||
#wantedBy = [ "default.target" ];
|
#wantedBy = [ "default.target" ];
|
||||||
|
@ -43,8 +43,6 @@ in inputs.nixpkgs.lib.nixosSystem {
|
|||||||
emacs.overlay
|
emacs.overlay
|
||||||
(import ../packages)
|
(import ../packages)
|
||||||
(import ../overlays/simple.nix)
|
(import ../overlays/simple.nix)
|
||||||
|
|
||||||
# Always keep sandbox.nix as the last overlay
|
|
||||||
(import ../overlays/sandbox.nix)
|
(import ../overlays/sandbox.nix)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
./services/input-remapper
|
./services/input-remapper
|
||||||
./services/gamemode
|
./services/gamemode
|
||||||
./services/i18n
|
./services/i18n
|
||||||
./services/greetd
|
|
||||||
|
|
||||||
# User
|
# User
|
||||||
#./users/default.nix
|
#./users/default.nix
|
||||||
|
@ -66,7 +66,7 @@ in {
|
|||||||
|
|
||||||
desktopManager.gnome.enable = true;
|
desktopManager.gnome.enable = true;
|
||||||
displayManager.gdm = {
|
displayManager.gdm = {
|
||||||
enable = false;
|
enable = true;
|
||||||
wayland = true;
|
wayland = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -35,10 +35,6 @@ let
|
|||||||
in {
|
in {
|
||||||
options.ptw.programs.sway = {
|
options.ptw.programs.sway = {
|
||||||
enable = lib.mkEnableOption "Configure sway using HomeManager";
|
enable = lib.mkEnableOption "Configure sway using HomeManager";
|
||||||
extraSessionCommands = lib.mkOption {
|
|
||||||
description = "Commands to be run before sway is started. See programs.sway.extraSessionCommands";
|
|
||||||
default = "";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
@ -65,14 +61,10 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.sway = {
|
programs.sway.enable = true;
|
||||||
enable = true;
|
|
||||||
extraSessionCommands = cfg.extraSessionCommands;
|
|
||||||
};
|
|
||||||
home-manager.users."${config.ptw.system.singleUser}" = {
|
home-manager.users."${config.ptw.system.singleUser}" = {
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraSessionCommands = cfg.extraSessionCommands;
|
|
||||||
config = {
|
config = {
|
||||||
bars = [ ];
|
bars = [ ];
|
||||||
startup = [
|
startup = [
|
||||||
|
@ -1,53 +0,0 @@
|
|||||||
{ lib, config, pkgs, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.ptw.services.greetd;
|
|
||||||
in {
|
|
||||||
options.ptw.services.greetd = {
|
|
||||||
enable = lib.mkEnableOption "Enable greetd with gtkgreet";
|
|
||||||
swayExtra = lib.mkOption {
|
|
||||||
description = "Extra options to include in the sway config";
|
|
||||||
default = "";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
users.users.greeter = {
|
|
||||||
isSystemUser = lib.mkForce false;
|
|
||||||
isNormalUser = true;
|
|
||||||
createHome = true;
|
|
||||||
uid = 992;
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
greetd = {
|
|
||||||
enable = true;
|
|
||||||
restart = true;
|
|
||||||
settings = {
|
|
||||||
default_session = let
|
|
||||||
swayConfig = pkgs.writeText "login-sway-config" ''
|
|
||||||
exec ${pkgs.greetd.gtkgreet}/bin/gtkgreet -l; ${pkgs.sway}/bin/swaymsg exit;
|
|
||||||
|
|
||||||
bindsym Mod4+shift+e exec swaynag \
|
|
||||||
-t warning \
|
|
||||||
-m 'What do you want to do?' \
|
|
||||||
-b 'Poweroff' 'systemctl poweroff' \
|
|
||||||
-b 'Reboot' 'systemctl reboot'
|
|
||||||
|
|
||||||
input "*" {
|
|
||||||
xkb_layout de
|
|
||||||
}
|
|
||||||
|
|
||||||
${cfg.swayExtra}
|
|
||||||
|
|
||||||
include /etc/sway/config.d/*
|
|
||||||
'';
|
|
||||||
in {
|
|
||||||
command = "${pkgs.sway}/bin/sway --config ${swayConfig}";
|
|
||||||
user = "greeter";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -23,9 +23,12 @@ in {
|
|||||||
"/dev/random", "/dev/urandom",
|
"/dev/random", "/dev/urandom",
|
||||||
"/dev/ptmx", "/dev/kvm", "/dev/kqemu",
|
"/dev/ptmx", "/dev/kvm", "/dev/kqemu",
|
||||||
"/dev/rtc","/dev/hpet",
|
"/dev/rtc","/dev/hpet",
|
||||||
|
"/dev/input/by-id/usb-Logitech_G700s_Rechargeable_Gaming_Mouse_93DF48160007-event-mouse",
|
||||||
|
"/dev/input/by-id/usb-Logitech_USB_Receiver-if02-event-mouse",
|
||||||
|
"/dev/input/by-id/usb-Razer_Razer_Tartarus_V2-event-kbd",
|
||||||
"/dev/input/by-id/virtual-event-EvdevProxyMouse",
|
"/dev/input/by-id/virtual-event-EvdevProxyMouse",
|
||||||
"/dev/input/by-id/virtual-event-EvdevProxyKeyboard",
|
"/dev/input/by-id/virtual-event-EvdevProxyTartarus",
|
||||||
"/dev/input/by-id/usb-Logitech_USB_Receiver-if02-event-mouse"
|
"/dev/input/by-id/usb-Razer_Razer_BlackWidow_Ultimate-event-kbd"
|
||||||
]
|
]
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -24,7 +24,7 @@ in {
|
|||||||
USBIDClass = {vendor=0x046d, model=0xc07c, class="Mouse"}
|
USBIDClass = {vendor=0x046d, model=0xc07c, class="Mouse"}
|
||||||
[[device]]
|
[[device]]
|
||||||
[device.Simple]
|
[device.Simple]
|
||||||
name = "EvdevProxyKeyboard"
|
name = "EvdevProxyTartarus"
|
||||||
vendor = 0x1337
|
vendor = 0x1337
|
||||||
model = 0x1338
|
model = 0x1338
|
||||||
class = "Keyboard"
|
class = "Keyboard"
|
||||||
@ -32,9 +32,7 @@ in {
|
|||||||
# the mapped version of the Tartarus evdev node.
|
# the mapped version of the Tartarus evdev node.
|
||||||
# (Useful for qemu)
|
# (Useful for qemu)
|
||||||
[[device.Simple.selector]]
|
[[device.Simple.selector]]
|
||||||
EVDEVClass = {phys="\"input-remapper\""}
|
EVDEVClass = {phys="\"key-mapper\""}
|
||||||
[[device.Simple.selector]]
|
|
||||||
USBIDClass = {vendor=0x1532, model=0x011a, class="Keyboard"}
|
|
||||||
'';
|
'';
|
||||||
"libvirt/hooks/qemu".source = let
|
"libvirt/hooks/qemu".source = let
|
||||||
vfio-isolate-state = "/tmp/vfio-isolate-state";
|
vfio-isolate-state = "/tmp/vfio-isolate-state";
|
||||||
@ -45,14 +43,16 @@ in {
|
|||||||
phase=$3
|
phase=$3
|
||||||
extra=$4
|
extra=$4
|
||||||
|
|
||||||
echo "called with $1 $2 $3 $4" > /dev/stderr
|
if [[ "$guest" = "win10" ]]; then
|
||||||
if [[ "$guest" = "win10-gaming" ]]; then
|
|
||||||
case "$action" in
|
case "$action" in
|
||||||
prepare)
|
prepare)
|
||||||
# Only do this while in preparation
|
# Only do this while in preparation
|
||||||
[[ ! "$phase" = "prepare" ]] && exit 0
|
[[ ! "$phase" = "prepare" ]] && exit 0
|
||||||
|
|
||||||
GUEST_CORES="C1-3,5-7"
|
sudo -u alexander systemctl --user start evdev-proxy.service
|
||||||
|
sudo -u alexander systemctl --user start scream.service
|
||||||
|
sleep 2
|
||||||
|
|
||||||
${pkgs.vfio-isolate}/bin/vfio-isolate \
|
${pkgs.vfio-isolate}/bin/vfio-isolate \
|
||||||
-u ${vfio-isolate-state} \
|
-u ${vfio-isolate-state} \
|
||||||
cpu-governor performance "$GUEST_CORES" \
|
cpu-governor performance "$GUEST_CORES" \
|
||||||
@ -64,6 +64,9 @@ in {
|
|||||||
stopped)
|
stopped)
|
||||||
# Only run when the VM is fully stopped
|
# Only run when the VM is fully stopped
|
||||||
[[ ! "$phase" = "end" ]] && exit 0
|
[[ ! "$phase" = "end" ]] && exit 0
|
||||||
|
sudo -u alexander systemctl --user stop evdev-proxy.service
|
||||||
|
sudo -u alexander systemctl --user stop scream.service
|
||||||
|
|
||||||
${pkgs.vfio-isolate}/bin/vfio-isolate \
|
${pkgs.vfio-isolate}/bin/vfio-isolate \
|
||||||
restore ${vfio-isolate-state}
|
restore ${vfio-isolate-state}
|
||||||
esac
|
esac
|
||||||
@ -80,13 +83,10 @@ in {
|
|||||||
services.udev.packages = with pkgs; [ evdev-proxy ];
|
services.udev.packages = with pkgs; [ evdev-proxy ];
|
||||||
|
|
||||||
systemd = {
|
systemd = {
|
||||||
services = {
|
services.libvirtd.path = with pkgs; [ vfio-isolate systemd bash ];
|
||||||
libvirtd.path = with pkgs; [ vfio-isolate systemd bash ];
|
|
||||||
};
|
|
||||||
|
|
||||||
user.services.evdev-proxy = {
|
user.services.evdev-proxy = {
|
||||||
description = "Creates virtual device to proxy evdev devices events";
|
description = "Creates virtual device to proxy evdev devices events";
|
||||||
wantedBy = [ "default.target" ];
|
#wantedBy = [ "default.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStart = "${pkgs.evdev-proxy}/bin/evdev-proxy";
|
ExecStart = "${pkgs.evdev-proxy}/bin/evdev-proxy";
|
||||||
|
@ -89,13 +89,4 @@ final: prev:
|
|||||||
sha256 = "1d17lvydlny9pvaxa9xy53wxs7i6d563lp5r9g3r1xpgnb7zli8v";
|
sha256 = "1d17lvydlny9pvaxa9xy53wxs7i6d563lp5r9g3r1xpgnb7zli8v";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
# TODO: Remove when updated in nixos-unstable
|
|
||||||
discord = prev.discord.overrideAttrs (old: {
|
|
||||||
version = "0.0.17";
|
|
||||||
src = prev.fetchurl {
|
|
||||||
url = "https://dl.discordapp.net/apps/linux/0.0.17/discord-0.0.17.tar.gz";
|
|
||||||
sha256 = "sha256-NGJzLl1dm7dfkB98pQR3gv4vlldrII6lOMWTuioDExU=";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
91
packages/applications/audio/sublime-music/default.nix
Normal file
91
packages/applications/audio/sublime-music/default.nix
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
{ fetchFromGitLab
|
||||||
|
, lib
|
||||||
|
, python3Packages
|
||||||
|
, gobject-introspection
|
||||||
|
, gtk3
|
||||||
|
, pango
|
||||||
|
, wrapGAppsHook
|
||||||
|
, xvfb-run
|
||||||
|
, chromecastSupport ? false
|
||||||
|
, serverSupport ? false
|
||||||
|
, keyringSupport ? true
|
||||||
|
, notifySupport ? true, libnotify
|
||||||
|
, networkSupport ? true, networkmanager
|
||||||
|
}:
|
||||||
|
|
||||||
|
python3Packages.buildPythonApplication rec {
|
||||||
|
pname = "sublime-music";
|
||||||
|
version = "0.11.16";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
owner = "sublime-music";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0n06x7l4i9nqbc74yhrjgg10zffdb75jz43mbxd03hr5057fdglz";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
gobject-introspection
|
||||||
|
python3Packages.poetry-core
|
||||||
|
wrapGAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
gtk3
|
||||||
|
pango
|
||||||
|
]
|
||||||
|
++ lib.optional notifySupport libnotify
|
||||||
|
++ lib.optional networkSupport networkmanager
|
||||||
|
;
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python3Packages; [
|
||||||
|
bleach
|
||||||
|
dataclasses-json
|
||||||
|
deepdiff
|
||||||
|
fuzzywuzzy
|
||||||
|
mpv
|
||||||
|
peewee
|
||||||
|
pygobject3
|
||||||
|
python-Levenshtein
|
||||||
|
python-dateutil
|
||||||
|
requests
|
||||||
|
semver
|
||||||
|
]
|
||||||
|
++ lib.optional chromecastSupport PyChromecast
|
||||||
|
++ lib.optional keyringSupport keyring
|
||||||
|
++ lib.optional serverSupport bottle
|
||||||
|
;
|
||||||
|
|
||||||
|
# hook for gobject-introspection doesn't like strictDeps
|
||||||
|
# https://github.com/NixOS/nixpkgs/issues/56943
|
||||||
|
strictDeps = false;
|
||||||
|
|
||||||
|
# Use the test suite provided by the upstream project.
|
||||||
|
doCheck = false;
|
||||||
|
checkInputs = with python3Packages; [
|
||||||
|
pytest
|
||||||
|
pytest-cov
|
||||||
|
];
|
||||||
|
checkPhase = "${xvfb-run}/bin/xvfb-run pytest";
|
||||||
|
|
||||||
|
# Also run the python import check for sanity
|
||||||
|
#pythonImportsCheck = [ "sublime_music" ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
install -Dm444 sublime-music.desktop -t $out/share/applications
|
||||||
|
install -Dm444 sublime-music.metainfo.xml -t $out/share/metainfo
|
||||||
|
|
||||||
|
for size in 16 22 32 48 64 72 96 128 192 512 1024; do
|
||||||
|
install -Dm444 logo/rendered/"$size".png \
|
||||||
|
$out/share/icons/hicolor/"$size"x"$size"/apps/sublime-music.png
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "GTK3 Subsonic/Airsonic client";
|
||||||
|
homepage = "https://sublimemusic.app/";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = with maintainers; [ albakham sumnerevans ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,17 +1,16 @@
|
|||||||
{
|
{
|
||||||
lib, stdenv, pkgs
|
lib, stdenv, pkgs
|
||||||
, extraStartupArgs ? ""
|
, extraStartupArgs ? ""
|
||||||
, upstreamElectron ? pkgs.electron
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
pkgs.discord.overrideAttrs (old: let
|
pkgs.unstable.discord.overrideAttrs (old: let
|
||||||
asar = pkgs.nodePackages.asar;
|
asar = pkgs.nodePackages.asar;
|
||||||
gtk3 = pkgs.gtk3;
|
gtk3 = pkgs.gtk3;
|
||||||
binaryName = "Discord";
|
binaryName = "Discord";
|
||||||
system-electron = "$out/opt/${binaryName}/system-electron.sh";
|
system-electron = "$out/opt/${binaryName}/system-electron.sh";
|
||||||
in rec {
|
in rec {
|
||||||
version = "0.0.16";
|
version = "0.0.16";
|
||||||
nativeBuildInputs = with pkgs.unstable; old.nativeBuildInputs ++ [ upstreamElectron asar ];
|
nativeBuildInputs = with pkgs.unstable; old.nativeBuildInputs ++ [ electron asar ];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
${asar}/bin/asar e resources/app.asar resources/app
|
${asar}/bin/asar e resources/app.asar resources/app
|
||||||
rm resources/app.asar
|
rm resources/app.asar
|
||||||
|
@ -6,13 +6,10 @@ let
|
|||||||
discord-system-electron = prev.callPackage ./applications/networking/instant-messengers/discord {
|
discord-system-electron = prev.callPackage ./applications/networking/instant-messengers/discord {
|
||||||
# Wayland
|
# Wayland
|
||||||
# NOTE: electron under Wayland has no window titlebars
|
# NOTE: electron under Wayland has no window titlebars
|
||||||
upstreamElectron = prev.electron_16;
|
|
||||||
extraStartupArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland";
|
extraStartupArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland";
|
||||||
#extraStartupArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WebRTCPipeWireCapturer";
|
#extraStartupArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WebRTCPipeWireCapturer";
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
inherit discord-system-electron;
|
|
||||||
|
|
||||||
input-remapper = prev.callPackage ./tools/games/input-remapper {};
|
input-remapper = prev.callPackage ./tools/games/input-remapper {};
|
||||||
vfio-isolate = prev.callPackage ./tools/virtualisation/vfio-isolate {};
|
vfio-isolate = prev.callPackage ./tools/virtualisation/vfio-isolate {};
|
||||||
mopidy-funkwhale = prev.callPackage ./applications/audio/mopidy/funkwhale.nix {};
|
mopidy-funkwhale = prev.callPackage ./applications/audio/mopidy/funkwhale.nix {};
|
||||||
@ -23,7 +20,6 @@ in {
|
|||||||
|
|
||||||
replaysorcery = prev.callPackage ./tools/games/replaysorcery {};
|
replaysorcery = prev.callPackage ./tools/games/replaysorcery {};
|
||||||
evdev-proxy = prev.callPackage ./tools/virtualisation/evdev-proxy {};
|
evdev-proxy = prev.callPackage ./tools/virtualisation/evdev-proxy {};
|
||||||
virtiofsd = prev.callPackage ./tools/virtualisation/virtiofsd {};
|
|
||||||
anime4k = prev.callPackage ./misc/video/anime4k {};
|
anime4k = prev.callPackage ./misc/video/anime4k {};
|
||||||
anime-dl = prev.callPackage ./tools/video/animedl {
|
anime-dl = prev.callPackage ./tools/video/animedl {
|
||||||
pySmartDL = pySmartDL;
|
pySmartDL = pySmartDL;
|
||||||
@ -50,13 +46,13 @@ in {
|
|||||||
|
|
||||||
swaync = prev.callPackage ./tools/desktop/swaync {};
|
swaync = prev.callPackage ./tools/desktop/swaync {};
|
||||||
|
|
||||||
|
# TODO: Remove once NixOS has version 0.11.16 in their repos
|
||||||
|
sublime-music-no-test = prev.callPackage ./applications/audio/sublime-music {};
|
||||||
|
|
||||||
sound-gambit = prev.callPackage tools/audio/sound-gambit {};
|
sound-gambit = prev.callPackage tools/audio/sound-gambit {};
|
||||||
ebu-norm = prev.callPackage tools/audio/ebu-norm {};
|
ebu-norm = prev.callPackage tools/audio/ebu-norm {};
|
||||||
|
|
||||||
payload-dumper = prev.callPackage tools/system/payload-dumper {};
|
payload-dumper = prev.callPackage tools/system/payload-dumper {};
|
||||||
|
|
||||||
psst = prev.callPackage tools/audio/psst {};
|
psst = prev.callPackage tools/audio/psst {};
|
||||||
|
|
||||||
wlrootsqt = prev.libsForQt5.callPackage ./wlrootsqt.nix {};
|
|
||||||
qtgreet = prev.libsForQt5.callPackage ./qtgreet.nix {};
|
|
||||||
}
|
}
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
{
|
|
||||||
lib
|
|
||||||
, rustPlatform
|
|
||||||
, pkgconfig, libcap_ng, libseccomp
|
|
||||||
, fetchFromGitLab
|
|
||||||
}:
|
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
|
||||||
pname = "virtiofsd";
|
|
||||||
version = "1.1.0";
|
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
|
||||||
owner = "virtio-fs";
|
|
||||||
repo = "virtiofsd";
|
|
||||||
rev = "a31ad19efc302836a364fd6d79bda63160404b01";
|
|
||||||
sha256 = "12nxm40sjx2jzl1j2czzanmk9b922dvfh64ndvgf5z4g4cviv33x";
|
|
||||||
};
|
|
||||||
|
|
||||||
cargoSha256 = "sha256-uRPmZE/xc0yeurBZ4rnrZua5d4lbPwStMUacFgbquuk=";
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
|
||||||
|
|
||||||
buildInputs = [ libcap_ng libseccomp ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "vhost-user virtio-fs device backend written in Rust";
|
|
||||||
homepage = "https://gitlab.com/virtio-fs/virtiofsd";
|
|
||||||
license = licenses.bsd3;
|
|
||||||
maintainers = [];
|
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user