Compare commits

..

3 Commits

Author SHA1 Message Date
68b0a6ea06 Règles udev Steam controller 2018-08-28 15:32:44 +02:00
37ec7a0477 Correction chemin secret dogetipbot 2018-08-28 15:30:39 +02:00
26dd962881 Jackett depuis channel unstable 2018-08-28 15:29:48 +02:00
4 changed files with 51 additions and 1 deletions

7
overlays/jackett.nix Normal file
View File

@ -0,0 +1,7 @@
self: super:
let
unstable = import <nixos-unstable> {};
in
{
jackett = unstable.jackett;
}

View File

@ -0,0 +1,42 @@
self: super:
{
steamcontroller-udev-rules = pkgs.writeTextFile {
name = "steamcontroller-udev-rules";
text = ''
# This rule is needed for basic functionality of the controller in Steam and keyboard/mouse emulation
SUBSYSTEM=="usb", ATTRS{idVendor}=="28de", MODE="0666"
# This rule is necessary for gamepad emulation;
KERNEL=="uinput", MODE="0660", GROUP="users", OPTIONS+="static_node=uinput"
# Valve HID devices over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="28de", MODE="0666"
# Valve HID devices over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*28DE:*", MODE="0666"
# DualShock 4 over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="05c4", MODE="0666"
# DualShock 4 wireless adapter over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0ba0", MODE="0666"
# DualShock 4 Slim over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="09cc", MODE="0666"
# DualShock 4 over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*054C:05C4*", MODE="0666"
# DualShock 4 Slim over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*054C:09CC*", MODE="0666"
# Nintendo Switch Pro Controller over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="2009", MODE="0666"
# Nintendo Switch Pro Controller over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*057E:2009*", MODE="0666"
'';
destination = "/etc/udev/rules.d/99-steamcontroller.rules";
};
}

View File

@ -44,6 +44,7 @@
(import ../../overlays/site-musique.nix) (import ../../overlays/site-musique.nix)
(import ../../overlays/vsftpd.nix) (import ../../overlays/vsftpd.nix)
(import ../../overlays/dogetipbot-telegram.nix) (import ../../overlays/dogetipbot-telegram.nix)
(import ../../overlays/jackett.nix)
]; ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
neovim neovim

View File

@ -347,7 +347,7 @@ in
script = "${pkgs.dogetipbot-telegram}/bin/dogetipbot-telegram --block-io-api-key $BLOCK_IO_API_KEY --block-io-pin $BLOCK_IO_PIN --telegram-api-key $TELEGRAM_API_KEY --network DOGE"; script = "${pkgs.dogetipbot-telegram}/bin/dogetipbot-telegram --block-io-api-key $BLOCK_IO_API_KEY --block-io-pin $BLOCK_IO_PIN --telegram-api-key $TELEGRAM_API_KEY --network DOGE";
enable = true; enable = true;
serviceConfig = { serviceConfig = {
EnvironmentFile = "/var/dogetipbot-telegram/env"; EnvironmentFile = "/mnt/secrets/dogetipbot-telegram_env";
User = "nobody"; User = "nobody";
Group = "nogroup"; Group = "nogroup";
}; };