Fix shell lint problems
This commit is contained in:
@@ -30,7 +30,7 @@ writeShellApplication {
|
|||||||
|
|
||||||
# Build NixOS for this system
|
# Build NixOS for this system
|
||||||
pushd "''${dir}"
|
pushd "''${dir}"
|
||||||
nix build "~/.config/darwin#darwinConfigurations.$(hostname -s).system"
|
nix build "''${HOME}/.config/darwin#darwinConfigurations.$(hostname -s).system"
|
||||||
./result/sw/bin/darwin-rebuild switch --flake ~/.config/darwin
|
./result/sw/bin/darwin-rebuild switch --flake ~/.config/darwin
|
||||||
popd
|
popd
|
||||||
rm -r "''${dir}"
|
rm -r "''${dir}"
|
||||||
|
|||||||
+3
-3
@@ -5,7 +5,7 @@ writeShellApplication {
|
|||||||
runtimeInputs = [ git ];
|
runtimeInputs = [ git ];
|
||||||
text = ''
|
text = ''
|
||||||
hostname="''${1}"
|
hostname="''${1}"
|
||||||
if [ -n "''${hostname}"]; then
|
if [ -n "''${hostname}" ]; then
|
||||||
echo "You must provide a hostname";
|
echo "You must provide a hostname";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
@@ -50,7 +50,7 @@ writeShellApplication {
|
|||||||
cp /etc/nixos.bk/hardware-configuration.nix /etc/nixos
|
cp /etc/nixos.bk/hardware-configuration.nix /etc/nixos
|
||||||
chown -R greg nixos
|
chown -R greg nixos
|
||||||
|
|
||||||
echo "Now you should be able to just run `nixos-rebuild switch` to enable the flake functionality"
|
echo "Now you should be able to just run 'nixos-rebuild switch' to enable the flake functionality"
|
||||||
echo "After that and adding the entry to the flake, run `nixos-rebuild boot --flake '.#''${hostname}'` and reboot"
|
echo "After that and adding the entry to the flake, run 'nixos-rebuild boot --flake '.#''${hostname}' and reboot"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user