From 26dd962881a8dfe70d2de0ec97d44a045e6dcfa3 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Tue, 28 Aug 2018 15:29:48 +0200 Subject: [PATCH 1/3] Jackett depuis channel unstable --- overlays/jackett.nix | 7 +++++++ systems/LoutreOS/configuration.nix | 1 + 2 files changed, 8 insertions(+) create mode 100644 overlays/jackett.nix diff --git a/overlays/jackett.nix b/overlays/jackett.nix new file mode 100644 index 0000000..8cca722 --- /dev/null +++ b/overlays/jackett.nix @@ -0,0 +1,7 @@ +self: super: +let + unstable = import {}; +in +{ + jackett = unstable.jackett; +} diff --git a/systems/LoutreOS/configuration.nix b/systems/LoutreOS/configuration.nix index a35b7b2..bac831a 100644 --- a/systems/LoutreOS/configuration.nix +++ b/systems/LoutreOS/configuration.nix @@ -44,6 +44,7 @@ (import ../../overlays/site-musique.nix) (import ../../overlays/vsftpd.nix) (import ../../overlays/dogetipbot-telegram.nix) + (import ../../overlays/jackett.nix) ]; environment.systemPackages = with pkgs; [ neovim From 37ec7a04775570ed38c98d84282b9874da5120ba Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Tue, 28 Aug 2018 15:30:39 +0200 Subject: [PATCH 2/3] Correction chemin secret dogetipbot --- systems/LoutreOS/services.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systems/LoutreOS/services.nix b/systems/LoutreOS/services.nix index adbe047..e59047e 100644 --- a/systems/LoutreOS/services.nix +++ b/systems/LoutreOS/services.nix @@ -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"; enable = true; serviceConfig = { - EnvironmentFile = "/var/dogetipbot-telegram/env"; + EnvironmentFile = "/mnt/secrets/dogetipbot-telegram_env"; User = "nobody"; Group = "nogroup"; }; From 68b0a6ea0620a69aec5901f77b9cc8f1a36eec88 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Tue, 28 Aug 2018 15:32:44 +0200 Subject: [PATCH 3/3] =?UTF-8?q?R=C3=A8gles=20udev=20Steam=20controller?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- overlays/steamcontroller-udev-rules.nix | 42 +++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 overlays/steamcontroller-udev-rules.nix diff --git a/overlays/steamcontroller-udev-rules.nix b/overlays/steamcontroller-udev-rules.nix new file mode 100644 index 0000000..74ff7ba --- /dev/null +++ b/overlays/steamcontroller-udev-rules.nix @@ -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"; + }; +}