Execute nixfmt

This commit is contained in:
Fabian Hauser 2021-10-07 13:30:17 +02:00
parent 853a1c4aaa
commit de980184c1
2 changed files with 16 additions and 12 deletions

View file

@ -36,7 +36,10 @@
office-dock.outputs = [ office-dock.outputs = [
(mkScreen "Dell Inc. DELL P2720DC BRKPK53" // { position = "0,0"; }) (mkScreen "Dell Inc. DELL P2720DC BRKPK53" // { position = "0,0"; })
(mkScreen "Dell Inc. DELL P2720DC 6JRRK53" // { position = "2560,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 = [ home-pc.outputs = [
(mkScreen "Dell Inc. DELL P2720DC 22JPK53" // { position = "4480,0"; }) (mkScreen "Dell Inc. DELL P2720DC 22JPK53" // { position = "4480,0"; })

View file

@ -60,17 +60,18 @@ let
${pkgs.nix}/bin/nix-shell ''${ENV_FILE} --run "$COMMAND" ${pkgs.nix}/bin/nix-shell ''${ENV_FILE} --run "$COMMAND"
''; '';
wsudo = with pkgs.xorg; pkgs.writeScriptBin "wsudo" '' wsudo = with pkgs.xorg;
#!/usr/bin/env bash pkgs.writeScriptBin "wsudo" ''
#small script to enable root access to x-windows system #!/usr/bin/env bash
${xhost}/bin/xhost +SI:localuser:root #small script to enable root access to x-windows system
sudo $1 ${xhost}/bin/xhost +SI:localuser:root
#disable root access after application terminates sudo $1
${xhost}/bin/xhost -SI:localuser:root #disable root access after application terminates
#print access status to allow verification that root access was remov ${xhost}/bin/xhost -SI:localuser:root
ed #print access status to allow verification that root access was remov
${xhost}/bin/xhost ed
''; ${xhost}/bin/xhost
'';
in { in {
home-manager.users.fhauser.home.packages = home-manager.users.fhauser.home.packages =
[ passbemenu threema-vpn threema-env wsudo ]; [ passbemenu threema-vpn threema-env wsudo ];