add sc-check script

This commit is contained in:
Sean Buckley 2022-06-21 23:28:28 -04:00
parent 0aebdd8fd9
commit 7500b12ed9

View file

@ -27,9 +27,16 @@ in
systemd.tmpfiles.rules = [ "e /home/sean/Downloads - - - 9d" ]; systemd.tmpfiles.rules = [ "e /home/sean/Downloads - - - 9d" ];
environment.systemPackages = map environment.systemPackages =
(x: (pkgs.writeShellScriptBin "sc-${x}" "nixos-rebuild ${x} --refresh --flake bck")) [
[ "boot" "build" "switch" "test" ]; (pkgs.writeShellScriptBin "sc-check" ''
readlink /run/current-system
nix eval --raw "bck#nixosConfigurations.$(hostname).config.system.build.toplevel"
'')
]
++ map
(x: (pkgs.writeShellScriptBin "sc-${x}" "nixos-rebuild ${x} --refresh --flake bck"))
[ "boot" "build" "switch" "test" ];
sconfig.user-settings = '' sconfig.user-settings = ''
git config --global user.email "sean.bck@gmail.com" git config --global user.email "sean.bck@gmail.com"