working on home manager spreading though the nix files

This commit is contained in:
Julian Sutter 2023-01-23 08:57:22 -08:00
parent 30f378b063
commit 5153dc64f6
4 changed files with 36 additions and 14 deletions

View file

@ -3,6 +3,16 @@
{
fileSystems."/" =
{ device = "/dev/disk/by-partlabel/primary";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-partlabel/ESP";
fsType = "vfat";
};
nixpkgs.config.allowUnfree = true;
users.users.jsutter = {

View file

@ -1,11 +1,24 @@
{ config, lib, pkgs, ... }: {
{ config, lib, pkgs, modulesPath, ... }: {
# CPU Stuff
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp166s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault
config.hardware.enableRedistributableFirmware;
# From Flakes
boot.kernelParams = [