update the shell
This commit is contained in:
parent
9f388d75d8
commit
754e4c945e
2 changed files with 6 additions and 29 deletions
|
|
@ -1,25 +1 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
throw "not generated yet"
|
||||||
# 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;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -52,10 +52,11 @@ pkgs.mkShell {
|
||||||
|
|
||||||
# push the flake to the remote system
|
# push the flake to the remote system
|
||||||
nixos-anywhere --\
|
nixos-anywhere --\
|
||||||
--flake .#$(HOST)\
|
--flake .#$HOST\
|
||||||
--build-on remote\
|
--build-on remote\
|
||||||
--generate-hardware-config nixos-generate-config ./hosts/$(HOST)/hardware-configuration.nix\
|
--copy-host-keys\
|
||||||
--target-host $(USER)@$(IP)
|
--generate-hardware-config nixos-generate-config ./hosts/$HOST/hardware-configuration.nix\
|
||||||
|
--target-host $USER@$IP
|
||||||
'')
|
'')
|
||||||
|
|
||||||
(pkgs.writeShellScriptBin "-deploy" ''
|
(pkgs.writeShellScriptBin "-deploy" ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue