update the shell

This commit is contained in:
Squibid 2025-11-29 00:02:01 -05:00
parent 9f388d75d8
commit 754e4c945e
Signed by: squibid
GPG key ID: BECE5684D3C4005D
2 changed files with 6 additions and 29 deletions

View file

@ -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.<interface>.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"

View file

@ -52,10 +52,11 @@ pkgs.mkShell {
# push the flake to the remote system
nixos-anywhere --\
--flake .#$(HOST)\
--flake .#$HOST\
--build-on remote\
--generate-hardware-config nixos-generate-config ./hosts/$(HOST)/hardware-configuration.nix\
--target-host $(USER)@$(IP)
--copy-host-keys\
--generate-hardware-config nixos-generate-config ./hosts/$HOST/hardware-configuration.nix\
--target-host $USER@$IP
'')
(pkgs.writeShellScriptBin "-deploy" ''