From 1a1769ef3d2a939c8bc30f207d3cf2cd88a66549 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 16 Apr 2024 08:34:16 -0500 Subject: [PATCH] Enhance injection code --- overlays/inject.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/overlays/inject.nix b/overlays/inject.nix index 6837e6f..9fa9be6 100644 --- a/overlays/inject.nix +++ b/overlays/inject.nix @@ -20,6 +20,15 @@ mkdir -p "/etc/nixos/hosts/''${hostname}" cp /etc/nixos.bk/configuration.nix "/etc/nixos/hosts/''${hostname}/default.nix" cp /etc/nixos.bk/hardware-configuration.nix "/etc/nixos/hosts/''${hostname}/hardware-configuration.nix" +# Prepare home-manager portion for setup +mkdir -p "/etc/nixos/home/hosts/''${hostname}" +cat < EOF > "/etc/nixos/home/hosts/''${hostname}/default.nix" +{ pkgs, config, ... }: + +{ +} +EOF + # Prepares it for injecting the use case into the flake usage cp /etc/nixos.bk/hardware-configuration.nix /etc/nixos chown -R greg nixos