mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-20 10:36:25 +00:00
63 lines
1.5 KiB
Nix
63 lines
1.5 KiB
Nix
{ inputs, lib, pkgs, platform, ... }:
|
|
{
|
|
imports = [
|
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
|
#inputs.nixos-hardware.nixosModules.common-gpu-nvidia
|
|
inputs.nixos-hardware.nixosModules.common-pc
|
|
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
|
(import ./disks.nix)
|
|
../_mixins/hardware/gpu.nix
|
|
|
|
../_mixins/hardware/systemd-boot.nix
|
|
../_mixins/services/bluetooth.nix
|
|
../_mixins/services/pipewire.nix
|
|
../_mixins/virt
|
|
../_mixins/virt/docker.nix
|
|
../_mixins/virt/podman.nix
|
|
];
|
|
|
|
boot = {
|
|
initrd = {
|
|
availableKernelModules = [
|
|
"ahci"
|
|
"nvme"
|
|
"rtsx_pci_sdmmc"
|
|
"sd_mod"
|
|
"thunderbolt"
|
|
"usb_storage"
|
|
"xhci_pci"
|
|
];
|
|
};
|
|
|
|
kernelModules = [ "kvm-intel" ]; # TODO: "nvidia"
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
};
|
|
|
|
console.keyMap = lib.mkForce "us";
|
|
services.kmscon.extraConfig = lib.mkForce ''
|
|
font-size=12
|
|
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";
|
|
};
|
|
|
|
virtualisation.docker.storageDriver = "btrfs";
|
|
# virtualisation.podman.storageDriver = "btrfs";
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "${platform}";
|
|
|
|
}
|