From de980184c1cb9d87b7790391c9a5468ed1171892 Mon Sep 17 00:00:00 2001 From: Fabian Hauser Date: Thu, 7 Oct 2021 13:30:17 +0200 Subject: [PATCH] Execute nixfmt --- .../fhauser/applications/kanshi.nix | 5 +++- .../fhauser/applications/scripts.nix | 23 ++++++++++--------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/defaults/user-configuration/fhauser/applications/kanshi.nix b/defaults/user-configuration/fhauser/applications/kanshi.nix index 5f5516c..1d09f79 100644 --- a/defaults/user-configuration/fhauser/applications/kanshi.nix +++ b/defaults/user-configuration/fhauser/applications/kanshi.nix @@ -36,7 +36,10 @@ office-dock.outputs = [ (mkScreen "Dell Inc. DELL P2720DC BRKPK53" // { position = "0,0"; }) (mkScreen "Dell Inc. DELL P2720DC 6JRRK53" // { position = "2560,0"; }) - (mkScreen "Unknown 0x08CE 0x00000000" // { position = "5120,0"; scale = 2.0; }) + (mkScreen "Unknown 0x08CE 0x00000000" // { + position = "5120,0"; + scale = 2.0; + }) ]; home-pc.outputs = [ (mkScreen "Dell Inc. DELL P2720DC 22JPK53" // { position = "4480,0"; }) diff --git a/defaults/user-configuration/fhauser/applications/scripts.nix b/defaults/user-configuration/fhauser/applications/scripts.nix index 4cb579c..f5e207a 100644 --- a/defaults/user-configuration/fhauser/applications/scripts.nix +++ b/defaults/user-configuration/fhauser/applications/scripts.nix @@ -60,17 +60,18 @@ let ${pkgs.nix}/bin/nix-shell ''${ENV_FILE} --run "$COMMAND" ''; - wsudo = with pkgs.xorg; pkgs.writeScriptBin "wsudo" '' - #!/usr/bin/env bash - #small script to enable root access to x-windows system - ${xhost}/bin/xhost +SI:localuser:root - sudo $1 - #disable root access after application terminates - ${xhost}/bin/xhost -SI:localuser:root - #print access status to allow verification that root access was remov - ed - ${xhost}/bin/xhost - ''; + wsudo = with pkgs.xorg; + pkgs.writeScriptBin "wsudo" '' + #!/usr/bin/env bash + #small script to enable root access to x-windows system + ${xhost}/bin/xhost +SI:localuser:root + sudo $1 + #disable root access after application terminates + ${xhost}/bin/xhost -SI:localuser:root + #print access status to allow verification that root access was remov + ed + ${xhost}/bin/xhost + ''; in { home-manager.users.fhauser.home.packages = [ passbemenu threema-vpn threema-env wsudo ];