refactor system into only 3 files

This commit is contained in:
atagen 2022-08-20 12:36:08 +10:00
parent 80762b7529
commit 7043ef2d2c
5 changed files with 64 additions and 104 deletions

View file

@ -1,6 +1,26 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/1C5C-8FF4";
fsType = "vfat";
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
networking.hostName = "adrift"; # Define your hostname.
services.xserver.videoDrivers = [ "i915" ];
services.tlp.enable = true;
@ -9,6 +29,7 @@
isNormalUser = true;
extraGroups = [ "wheel" ];
};
fileSystems."/" = {
device = "/dev/mapper/nix-os";
fsType = "ext4";