From 4b2050f8762b2880277c0762efc925991a034892 Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Sat, 8 Feb 2025 13:37:01 -0800 Subject: migration: housekeeping --- snowfall/systems/x86_64-linux/c-pc/default.nix | 2 +- snowfall/systems/x86_64-linux/c-pc/hardware.nix | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'snowfall/systems/x86_64-linux/c-pc') diff --git a/snowfall/systems/x86_64-linux/c-pc/default.nix b/snowfall/systems/x86_64-linux/c-pc/default.nix index e1a025d..5b98fc1 100644 --- a/snowfall/systems/x86_64-linux/c-pc/default.nix +++ b/snowfall/systems/x86_64-linux/c-pc/default.nix @@ -27,7 +27,7 @@ with lib; with lib.${namespace}; { apps.i3 = { videoDrivers = [ "amdgpu" ]; - #TODO: move to services.autorandr + #TODO: migrate to services.autorandr setupCommands = '' if ${pkgs.xorg.xrandr}/bin/xrandr --query | grep 2560x1080; then ${pkgs.xorg.xrandr}/bin/xrandr --output DVI-D-0 --mode 1920x1080 --rate 60 --pos 0x0 diff --git a/snowfall/systems/x86_64-linux/c-pc/hardware.nix b/snowfall/systems/x86_64-linux/c-pc/hardware.nix index d60d964..8f7f8cd 100644 --- a/snowfall/systems/x86_64-linux/c-pc/hardware.nix +++ b/snowfall/systems/x86_64-linux/c-pc/hardware.nix @@ -1,10 +1,6 @@ { config, lib, pkgs, modulesPath, ... }: { - imports = [ - (modulesPath + "/installer/scan/not-detected.nix") - ]; - boot = { loader.grub = { enable = true; @@ -55,6 +51,8 @@ swapDevices = [ ]; - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.enableRedistributableFirmware = true; + hardware.cpu.amd.updateMicrocode = true; + + nixpkgs.hostPlatform = "x86_64-linux"; } -- cgit v1.2.3