From 7aed11aff2b96eea23753e719b35cf2c2e4d1946 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 16 Apr 2024 08:55:08 -0500 Subject: [PATCH] More inject improvements --- overlays/inject.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/overlays/inject.nix b/overlays/inject.nix index 9fa9be6..e18fc20 100644 --- a/overlays/inject.nix +++ b/overlays/inject.nix @@ -17,7 +17,25 @@ ${git}/bin/git clone http://github.com/greg-hellings/nixos-config nixos mkdir -p "/etc/nixos/hosts/''${hostname}" # Prepares everything for the flake usage -cp /etc/nixos.bk/configuration.nix "/etc/nixos/hosts/''${hostname}/default.nix" +#cp /etc/nixos.bk/configuration.nix "/etc/nixos/hosts/''${hostname}/default.nix" +cat < EOF > "/etc/nixos/hosts/''${hostname}/default.nix +{ pkgs, config, ... }: + +{ + imports = [ ./hardware-configuration.nix ]; + + boot.loader = { + systemd-boot.enable = true; + efi.canTouchEfiVariables = true; + }; + + networking.hostName = "''${hostname}"; + greg = { + home = true; + tailscale.enable = true; + }; +} +EOF cp /etc/nixos.bk/hardware-configuration.nix "/etc/nixos/hosts/''${hostname}/hardware-configuration.nix" # Prepare home-manager portion for setup