mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
add sc-check script
This commit is contained in:
parent
0aebdd8fd9
commit
7500b12ed9
1 changed files with 10 additions and 3 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue