diff options
author | lassulus <git@lassul.us> | 2023-01-26 16:13:42 +0100 |
---|---|---|
committer | lassulus <git@lassul.us> | 2023-01-26 16:13:42 +0100 |
commit | 18efc15b2a2694dac07f89d33bb1243492358a88 (patch) | |
tree | 049c8953040d0d6463dedbeaebd3067239862e9c /lass/1systems/aergia/physical.nix | |
parent | dbfc4044ef79153f2b80b0d6c252ddbf2ab476ab (diff) |
l aergia.r: init
Diffstat (limited to 'lass/1systems/aergia/physical.nix')
-rw-r--r-- | lass/1systems/aergia/physical.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/lass/1systems/aergia/physical.nix b/lass/1systems/aergia/physical.nix new file mode 100644 index 000000000..800202396 --- /dev/null +++ b/lass/1systems/aergia/physical.nix @@ -0,0 +1,40 @@ +{ config, lib, pkgs, modulesPath, ... }: +{ + imports = [ + ./config.nix + (modulesPath + "/installer/scan/not-detected.nix") + ]; + disko.devices = import ./disk.nix; + + networking.hostId = "deadbeef"; + # boot.loader.efi.canTouchEfiVariables = true; + boot.loader.grub = { + enable = true; + device = "/dev/nvme0n1"; + efiSupport = true; + efiInstallAsRemovable = true; + }; + + + # Enables the amd cpu scaling https://www.kernel.org/doc/html/latest/admin-guide/pm/amd-pstate.html + # On recent AMD CPUs this can be more energy efficient. + boot.kernelModules = [ "kvm-amd" ]; + + # hardware.cpu.amd.updateMicrocode = true; + + services.xserver.videoDrivers = [ + "amdgpu" + ]; + + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ]; + + services.logind.lidSwitch = "ignore"; + services.logind.lidSwitchDocked = "ignore"; + + environment.systemPackages = [ + pkgs.ryzenadj + ]; + + # textsize + services.xserver.dpi = 200; +} |