2023-10-02 16:48:16 +00:00
|
|
|
{ inputs, lib, pkgs, platform, ... }:
|
2023-09-26 19:45:31 +00:00
|
|
|
{
|
2023-09-25 18:05:07 +00:00
|
|
|
imports = [
|
2023-09-26 17:44:54 +00:00
|
|
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
|
|
|
#inputs.nixos-hardware.nixosModules.common-gpu-nvidia
|
|
|
|
inputs.nixos-hardware.nixosModules.common-pc
|
2023-09-25 18:05:07 +00:00
|
|
|
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
2023-09-28 17:15:12 +00:00
|
|
|
(import ./disks.nix)
|
2023-10-02 16:36:47 +00:00
|
|
|
../_mixins/hardware/gpu.nix
|
2023-09-25 18:05:07 +00:00
|
|
|
|
|
|
|
../_mixins/hardware/systemd-boot.nix
|
|
|
|
../_mixins/services/bluetooth.nix
|
|
|
|
../_mixins/services/pipewire.nix
|
|
|
|
../_mixins/virt
|
|
|
|
|
2023-09-26 17:44:54 +00:00
|
|
|
# ../_mixins/global
|
|
|
|
# ../_mixins/users/gburd
|
2023-09-25 18:05:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
boot = {
|
2023-09-25 18:53:08 +00:00
|
|
|
initrd = {
|
|
|
|
availableKernelModules = [
|
|
|
|
"ahci"
|
|
|
|
"nvme"
|
|
|
|
"rtsx_pci_sdmmc"
|
|
|
|
"sd_mod"
|
2023-10-02 16:36:47 +00:00
|
|
|
"thunderbolt"
|
2023-09-25 18:53:08 +00:00
|
|
|
"usb_storage"
|
|
|
|
"xhci_pci"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-09-28 15:28:32 +00:00
|
|
|
kernelModules = [ "kvm-intel" ]; # TODO: "nvidia"
|
2023-09-25 18:05:07 +00:00
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
};
|
|
|
|
|
|
|
|
console.keyMap = lib.mkForce "us";
|
|
|
|
services.kmscon.extraConfig = lib.mkForce ''
|
2023-09-29 15:54:02 +00:00
|
|
|
font-size=12
|
2023-09-25 18:05:07 +00:00
|
|
|
xkb-layout=us
|
|
|
|
'';
|
|
|
|
services.xserver.layout = lib.mkForce "us";
|
|
|
|
services.xserver.xkbOptions = "ctrl:swapcaps";
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
nvtop-amd
|
|
|
|
];
|
|
|
|
|
|
|
|
networking.hostName = "floki";
|
|
|
|
powerManagement.powertop.enable = true;
|
|
|
|
powerManagement.cpuFreqGovernor = "powersave";
|
|
|
|
|
|
|
|
# Lid settings
|
|
|
|
services.logind = {
|
|
|
|
lidSwitch = "suspend";
|
|
|
|
lidSwitchExternalPower = "lock";
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
|
|
|
|
}
|