remove channels script

This commit is contained in:
Sean Buckley 2021-10-11 13:09:30 -04:00
parent 976e2c2f6c
commit c30f0bcb75

View file

@ -1,9 +1,4 @@
{ config, pkgs, lib, ... }:
let
system-rev = toString config.system.nixos.revision;
in
{
imports = [ ./powerline.nix ];
@ -67,15 +62,6 @@ in
print(str(int(ln.split(' ')[-1])/(1024*1024*1024))[:5],'GB')
'')
(writeShellScriptBin "channel" ''
echo
echo "NixOS ${config.system.nixos.release} (${config.system.defaultChannel})"
echo
echo "${system-rev} current local"
echo "$(curl --silent -L ${config.system.defaultChannel}/git-revision) latest available"
echo
'')
];
environment.etc.nixpkgs.source = pkgs.path;