diff --git a/hosts/idols-ai/hardware-configuration.nix b/hosts/idols-ai/hardware-configuration.nix index 9c756b73..948a48b2 100644 --- a/hosts/idols-ai/hardware-configuration.nix +++ b/hosts/idols-ai/hardware-configuration.nix @@ -19,6 +19,7 @@ boot.loader.efi.efiSysMountPoint = "/boot"; boot.loader.systemd-boot.enable = true; + # https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/top-level/linux-kernels.nix boot.kernelPackages = pkgs.linuxPackages_latest; # boot.kernelPackages = pkgs.linuxPackages_xanmod_latest; diff --git a/hosts/idols-aquamarine/default.nix b/hosts/idols-aquamarine/default.nix index 38defbd4..73a6ffdf 100644 --- a/hosts/idols-aquamarine/default.nix +++ b/hosts/idols-aquamarine/default.nix @@ -17,12 +17,11 @@ let inherit (myvars.networking) proxyGateway proxyGateway6 nameservers; inherit (myvars.networking.hostsAddr.${hostName}) iface ipv4; ipv4WithMask = "${ipv4}/24"; -in { - imports = - (mylib.scanPaths ./.) - ++ [ - disko.nixosModules.default - ]; +in +{ + imports = (mylib.scanPaths ./.) ++ [ + disko.nixosModules.default + ]; # supported file systems, so we can mount any removable disks with these filesystems boot.supportedFilesystems = [ @@ -41,8 +40,7 @@ in { # This doesn’t define how much memory will be used by the zram swap devices. zramSwap.memoryPercent = lib.mkForce 100; - boot.kernelPackages = pkgs.linuxPackages_latest; - boot.kernelModules = ["kvm-amd"]; + boot.kernelModules = [ "kvm-amd" ]; boot.extraModprobeConfig = "options kvm_amd nested=1"; # for amd cpu networking = { @@ -57,9 +55,9 @@ in { systemd.network.enable = true; systemd.network.networks."10-${iface}" = { - matchConfig.Name = [iface]; + matchConfig.Name = [ iface ]; networkConfig = { - Address = [ipv4WithMask]; + Address = [ ipv4WithMask ]; DNS = nameservers; DHCP = "ipv6"; # enable DHCPv6 only, so we can get a GUA. IPv6AcceptRA = true; # for Stateless IPv6 Autoconfiguraton (SLAAC)