mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
replace writeScriptBin with writeShellScriptBin
This commit is contained in:
parent
327d775b41
commit
f5eb7d7efa
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue