From 754e4c945e35edb43e1b5927c3140873f9fa59c3 Mon Sep 17 00:00:00 2001 From: Squibid Date: Sat, 29 Nov 2025 00:02:01 -0500 Subject: [PATCH] update the shell --- hosts/blob/hardware-configuration.nix | 26 +------------------------- shell.nix | 9 +++++---- 2 files changed, 6 insertions(+), 29 deletions(-) diff --git a/hosts/blob/hardware-configuration.nix b/hosts/blob/hardware-configuration.nix index 87a58d7..857c8ef 100644 --- a/hosts/blob/hardware-configuration.nix +++ b/hosts/blob/hardware-configuration.nix @@ -1,25 +1 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: - -{ - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; - - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; - boot.extraModulePackages = [ ]; - - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.eno1.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -} +throw "not generated yet" diff --git a/shell.nix b/shell.nix index 8147204..7e78f75 100644 --- a/shell.nix +++ b/shell.nix @@ -52,10 +52,11 @@ pkgs.mkShell { # push the flake to the remote system nixos-anywhere --\ - --flake .#$(HOST)\ - --build-on remote\ - --generate-hardware-config nixos-generate-config ./hosts/$(HOST)/hardware-configuration.nix\ - --target-host $(USER)@$(IP) + --flake .#$HOST\ + --build-on remote\ + --copy-host-keys\ + --generate-hardware-config nixos-generate-config ./hosts/$HOST/hardware-configuration.nix\ + --target-host $USER@$IP '') (pkgs.writeShellScriptBin "-deploy" ''