From e40616917ab00eec5d5c65126ee5e9372d8449f6 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 21 Jun 2016 21:53:22 +0200 Subject: rewacom --- hel.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hel.nix b/hel.nix index c5dea9be..7d3758c8 100644 --- a/hel.nix +++ b/hel.nix @@ -47,8 +47,17 @@ shadow (callPackage ./custom/thinklight.nix { thinklight = "kbd_backlight"; }) (callPackage ./utils/nix/rebuild-system.nix {}) + rewacom ]; + nixpkgs.config.packageOverrides = pkgs: rec { + rewacom = pkgs.writeScriptBin "rewacom" '' + #!${pkgs.stdenv.shell} + modprobe -r wacom + modprobe wacom + ''; + } + # nixpkgs.config.packageOverrides = pkgs: rec { # libqmi = pkgs.stdenv.lib.overrideDerivation pkgs.libqmi (old: { # src = pkgs.fetchgit { @@ -224,7 +233,7 @@ security = { sudo.extraConfig = '' - Cmnd_Alias SYSCTRL = /run/current-system/sw/sbin/shutdown, /run/current-system/sw/sbin/reboot, /run/current-system/sw/sbin/halt, /run/current-system/sw/bin/systemctl + Cmnd_Alias SYSCTRL = /run/current-system/sw/sbin/shutdown, /run/current-system/sw/sbin/reboot, /run/current-system/sw/sbin/halt, /run/current-system/sw/bin/systemctl, ${pkgs.rewacom}/bin/rewacom %wheel ALL=(ALL) NOPASSWD: SYSCTRL ''; -- cgit v1.2.3