diff --git a/flake.nix b/flake.nix index 7ae68ae..60d9b01 100644 --- a/flake.nix +++ b/flake.nix @@ -45,6 +45,14 @@ ./hosts/fred ]; }; + www2 = inputs.nixpkgs.lib.nixosSystem { + modules = server.modules ++ [ + { + networking.hostName = "www2"; + } + ./hosts/fred + ]; + }; loki = inputs.nixpkgs.lib.nixosSystem { modules = workstation.modules ++ [ { diff --git a/hosts/www2/default.nix b/hosts/www2/default.nix new file mode 100644 index 0000000..cb8ba8b --- /dev/null +++ b/hosts/www2/default.nix @@ -0,0 +1,8 @@ +{ config, pkgs, ... }: + +{ + imports = + [ + ./hardware-configuration.nix + ]; +} diff --git a/hosts/www2/hardware-configuration.nix b/hosts/www2/hardware-configuration.nix new file mode 100644 index 0000000..1b94e90 --- /dev/null +++ b/hosts/www2/hardware-configuration.nix @@ -0,0 +1,37 @@ +# 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" "ehci_pci" "ahci" "usbhid" "ums_realtek" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ "dm-snapshot" ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/4a1d2915-6964-4479-98c6-d17e333e83e9"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/FAE7-A0C7"; + fsType = "vfat"; + }; + + swapDevices = [ ]; + + # 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.enp0s25.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}