dotfiles/nixos/machines/jay-lenovo.nix

60 lines
1.3 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, forEachUser, ... }:
2023-03-17 19:48:20 -06:00
{
imports = [
../configuration.nix
2023-03-17 19:48:20 -06:00
];
features.full.enable = true;
2023-08-01 16:40:46 -06:00
environment.systemPackages = with pkgs; [
android-studio
2023-08-01 16:40:46 -06:00
linuxPackages_latest.perf
zenmonitor
];
2023-03-17 19:48:20 -06:00
hardware.enableRedistributableFirmware = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.initrd.kernelModules = [ "amdgpu" ];
boot.initrd.availableKernelModules = [
"nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" "amdgpu"
];
2023-03-17 19:48:20 -06:00
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.networkmanager.enable = true;
services.xserver = {
enable = true;
libinput.enable = true;
displayManager.sddm.enable = true;
desktopManager.plasma5.enable = true;
videoDrivers = [ "amdgpu" ];
};
2023-03-17 19:48:20 -06:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/cb96b029-df61-45d3-905b-a9435bf446df";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/1C5A-4FBB";
fsType = "vfat";
};
networking.hostName = "jay-lenovo";
2023-08-01 16:40:46 -06:00
services.power-profiles-daemon.enable = false;
services.tlp.enable = true;
2023-03-17 19:48:20 -06:00
system.stateVersion = "23.05";
home-manager.users = forEachUser {
home.stateVersion = "23.05";
};
2023-03-17 19:48:20 -06:00
}