From 861588f217ff551b29cf9b431d98de3aee0a15f4 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 16 Apr 2024 09:05:02 -0500 Subject: [PATCH] Fix inject syntax --- overlays/inject.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/overlays/inject.nix b/overlays/inject.nix index e18fc20..04f648e 100644 --- a/overlays/inject.nix +++ b/overlays/inject.nix @@ -18,7 +18,7 @@ mkdir -p "/etc/nixos/hosts/''${hostname}" # Prepares everything for the flake usage #cp /etc/nixos.bk/configuration.nix "/etc/nixos/hosts/''${hostname}/default.nix" -cat < EOF > "/etc/nixos/hosts/''${hostname}/default.nix +cat << EOF > "/etc/nixos/hosts/''${hostname}/default.nix" { pkgs, config, ... }: { @@ -40,7 +40,7 @@ cp /etc/nixos.bk/hardware-configuration.nix "/etc/nixos/hosts/''${hostname}/hard # Prepare home-manager portion for setup mkdir -p "/etc/nixos/home/hosts/''${hostname}" -cat < EOF > "/etc/nixos/home/hosts/''${hostname}/default.nix" +cat << EOF > "/etc/nixos/home/hosts/''${hostname}/default.nix" { pkgs, config, ... }: { @@ -51,6 +51,6 @@ EOF cp /etc/nixos.bk/hardware-configuration.nix /etc/nixos chown -R greg nixos -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 "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" ''