Update script to update root
This commit is contained in:
parent
048a909ca8
commit
baafd179b4
|
@ -16,6 +16,9 @@
|
||||||
${pkgs.nixfmt}/bin/nixfmt **/*.nix
|
${pkgs.nixfmt}/bin/nixfmt **/*.nix
|
||||||
'';
|
'';
|
||||||
update = pkgs.writeScriptBin "update" ''
|
update = pkgs.writeScriptBin "update" ''
|
||||||
|
# Update root
|
||||||
|
${pkgs.nix}/bin/nix flake update
|
||||||
|
|
||||||
for dir in `ls -d */`; do # Iterate through all the templates
|
for dir in `ls -d */`; do # Iterate through all the templates
|
||||||
(
|
(
|
||||||
cd $dir
|
cd $dir
|
||||||
|
|
Loading…
Reference in a new issue