mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +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,7 +27,14 @@ in
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [ "e /home/sean/Downloads - - - 9d" ];
|
systemd.tmpfiles.rules = [ "e /home/sean/Downloads - - - 9d" ];
|
||||||
|
|
||||||
environment.systemPackages = map
|
environment.systemPackages =
|
||||||
|
[
|
||||||
|
(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"))
|
(x: (pkgs.writeShellScriptBin "sc-${x}" "nixos-rebuild ${x} --refresh --flake bck"))
|
||||||
[ "boot" "build" "switch" "test" ];
|
[ "boot" "build" "switch" "test" ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue