Execute nixfmt
This commit is contained in:
parent
853a1c4aaa
commit
de980184c1
2 changed files with 16 additions and 12 deletions
|
@ -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 ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue