mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +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
|
rsync
|
||||||
nixpkgs-fmt
|
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 {
|
(vim_configurable.customize {
|
||||||
name = "vim";
|
name = "vim";
|
||||||
|
@ -46,8 +46,7 @@
|
||||||
print(str(int(ln.split(' ')[-1])/(1024*1024*1024))[:5],'GB')
|
print(str(int(ln.split(' ')[-1])/(1024*1024*1024))[:5],'GB')
|
||||||
'')
|
'')
|
||||||
|
|
||||||
(writeScriptBin "channel" ''
|
(writeShellScriptBin "channel" ''
|
||||||
#!/bin/sh
|
|
||||||
echo "$(curl --silent -L https://channels.nixos.org/nixos-20.09/git-revision)" nixos-20.09
|
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 "$(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
|
echo "$(curl --silent -L https://channels.nixos.org/nixos-unstable/git-revision)" nixos-unstable
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
gnome3.gnome-boxes
|
gnome3.gnome-boxes
|
||||||
qemu_kvm
|
qemu_kvm
|
||||||
(callPackage ./bottom-panel.nix { })
|
(callPackage ./bottom-panel.nix { })
|
||||||
(writeScriptBin "red" ''
|
(writeShellScriptBin "red" ''
|
||||||
x="$(gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled)"
|
x="$(gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled)"
|
||||||
[ "$x" = "true" ] && x=false || x=true
|
[ "$x" = "true" ] && x=false || x=true
|
||||||
echo "Nightlight: $x"
|
echo "Nightlight: $x"
|
||||||
|
|
Loading…
Reference in a new issue