about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2022-05-14 12:36:28 +0200
committeraszlig <aszlig@nix.build>2022-05-14 12:50:33 +0200
commit03117bcd0564a7008099bef87a17eefd6dd26c8f (patch)
tree57743845728e8718a300a963dd907d08ae68e83a /modules
parent675686ec0a8069b9ce36100e42887b4fa34bc7cb (diff)
profiles/workstation: Allow unraw via sysrq
I just was forced to reboot my workstation while working on a program
that sets the VT into raw mode but finding out that the unraw key now
doesn't work anymore. This used to be the case but with the sysctl
include that comes with systemd-coredump, the kernel.sysrq value
defaults to only allowing sync (16).

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'modules')
-rw-r--r--modules/user/aszlig/profiles/workstation/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/user/aszlig/profiles/workstation/default.nix b/modules/user/aszlig/profiles/workstation/default.nix
index 3fd60783..f4ae3d76 100644
--- a/modules/user/aszlig/profiles/workstation/default.nix
+++ b/modules/user/aszlig/profiles/workstation/default.nix
@@ -14,6 +14,9 @@ in {
     boot.kernelParams = [ "panic=1800" ];
     boot.cleanTmpDir = true;
 
+    # Allow sync, sak and unraw
+    boot.kernel.sysctl."kernel.sysrq" = 20;
+
     environment.systemPackages = with lib; let
       mkRandrConf = acc: rcfg: acc ++ singleton {
         name = rcfg.output;