replace writeScriptBin with writeShellScriptBin

This commit is contained in:
Sean Buckley 2020-10-26 11:47:45 -04:00
parent 327d775b41
commit f5eb7d7efa
2 changed files with 3 additions and 4 deletions

View file

@ -28,7 +28,7 @@
rsync
nixpkgs-fmt
(writeScriptBin "nix-roots" "nix-store --gc --print-roots | grep -v ^/proc/")
(writeShellScriptBin "nix-roots" "nix-store --gc --print-roots | grep -v ^/proc/")
(vim_configurable.customize {
name = "vim";
@ -46,8 +46,7 @@
print(str(int(ln.split(' ')[-1])/(1024*1024*1024))[:5],'GB')
'')
(writeScriptBin "channel" ''
#!/bin/sh
(writeShellScriptBin "channel" ''
echo "$(curl --silent -L https://channels.nixos.org/nixos-20.09/git-revision)" nixos-20.09
echo "$(cat /nix/var/nix/profiles/per-user/root/channels/nixos/.git-revision)" nixos local
echo "$(curl --silent -L https://channels.nixos.org/nixos-unstable/git-revision)" nixos-unstable

View file

@ -8,7 +8,7 @@
gnome3.gnome-boxes
qemu_kvm
(callPackage ./bottom-panel.nix { })
(writeScriptBin "red" ''
(writeShellScriptBin "red" ''
x="$(gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled)"
[ "$x" = "true" ] && x=false || x=true
echo "Nightlight: $x"