mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-03-14 18:18:59 +00:00
hosts/plover: move hardware config to be hosting provider-specific
This commit is contained in:
parent
62d220eb2d
commit
2e466e4561
@ -9,7 +9,10 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
# Since this will be rarely configured, make sure to import the appropriate
|
||||||
|
# hardware modules depending on the hosting provider (and even just the
|
||||||
|
# server).
|
||||||
|
./modules/hardware/hetzner-cloud-cx21.nix
|
||||||
|
|
||||||
# The users for this host.
|
# The users for this host.
|
||||||
(lib.getUser "nixos" "admin")
|
(lib.getUser "nixos" "admin")
|
||||||
|
@ -3,10 +3,6 @@
|
|||||||
# Most of the filesystems listed here are supposed to be overriden to default
|
# Most of the filesystems listed here are supposed to be overriden to default
|
||||||
# settings of whatever image format configuration this host system will import
|
# settings of whatever image format configuration this host system will import
|
||||||
# from nixos-generators.
|
# from nixos-generators.
|
||||||
#
|
|
||||||
# Take note that this hardware configuration is mostly considered with Hetzner
|
|
||||||
# Cloud hardware server settings in mind. Be sure to replace it whenever you
|
|
||||||
# update your cloud provider.
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
@ -35,6 +31,17 @@
|
|||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
networking.useDHCP = false;
|
networking = {
|
||||||
networking.interfaces.ens3.useDHCP = true;
|
useDHCP = false;
|
||||||
|
enableIPv6 = true;
|
||||||
|
|
||||||
|
dhcpcd.persistent = true;
|
||||||
|
|
||||||
|
interfaces = {
|
||||||
|
ens3 = {
|
||||||
|
useDHCP = true;
|
||||||
|
};
|
||||||
|
ens10.useDHCP = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user