hosts: formatting, move kernelPackages to module

This commit is contained in:
notohh 2023-06-10 17:37:24 -04:00
parent 9abe4bb8ac
commit fcd5a051b1
Signed by: notohh
GPG key ID: BD47506D475EE86D
6 changed files with 25 additions and 41 deletions

View file

@ -20,10 +20,7 @@
};
};
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.hostName = "ame";
networking.wireless.enable = true;
services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true;

View file

@ -1,41 +1,35 @@
# 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")
];
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usb_storage" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/57411820-f154-497e-9c7e-dfcb1f21c5cf";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/57411820-f154-497e-9c7e-dfcb1f21c5cf";
fsType = "ext4";
};
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/4D09-1D57";
fsType = "vfat";
};
fileSystems."/boot/efi" = {
device = "/dev/disk/by-uuid/4D09-1D57";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/4f69ab31-f6a9-4799-92f1-5abbe0dc9180"; }
];
# 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`.
swapDevices = [
{device = "/dev/disk/by-uuid/4f69ab31-f6a9-4799-92f1-5abbe0dc9180";}
];
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -14,8 +14,6 @@
};
};
boot.kernelPackages = pkgs.linuxPackages_latest;
networking = {
hostName = "kariru";
};

View file

@ -18,8 +18,6 @@
};
};
boot.kernelPackages = pkgs.linuxPackages_latest;
networking = {
hostName = "sakura";
};

View file

@ -22,7 +22,6 @@
};
};
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.extraModulePackages = with config.boot.kernelPackages; [v4l2loopback.out];
boot.kernelModules = ["v4l2loopback" "kvm-intel"];

View file

@ -16,8 +16,6 @@
};
};
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.hostName = "yuki";
networking.networkmanager.enable = true;