mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
cli: allow build with unknown nixos revision
This commit is contained in:
parent
9105bd132a
commit
d3064fa14a
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ in
|
|||
(writeShellScriptBin "nix-roots" "nix-store --gc --print-roots | grep -v ^/proc/")
|
||||
|
||||
(writeShellScriptBin "ns" ''
|
||||
exec nix shell "github:NixOS/nixpkgs/${config.system.nixos.revision}#$@"
|
||||
exec nix shell "github:NixOS/nixpkgs/${toString config.system.nixos.revision}#$@"
|
||||
'')
|
||||
|
||||
(writeShellScriptBin "pip_install" ''
|
||||
|
@ -60,7 +60,7 @@ in
|
|||
echo
|
||||
echo "NixOS ${config.system.nixos.release} (${config.system.defaultChannel})"
|
||||
echo
|
||||
echo "${config.system.nixos.revision} current local"
|
||||
echo "${toString config.system.nixos.revision} current local"
|
||||
echo "$(curl --silent -L ${config.system.defaultChannel}/git-revision) latest available"
|
||||
echo
|
||||
'')
|
||||
|
|
Loading…
Reference in a new issue