nix-config/hosts/floki/default.nix
2023-09-22 10:10:04 -04:00

60 lines
1.2 KiB
Nix

{ pkgs, inputs, ... }: {
imports = [
inputs.hardware.nixosModules.common-cpu-amd
inputs.hardware.nixosModules.common-gpu-amd
inputs.hardware.nixosModules.common-pc-ssd
./hardware-configuration.nix
../common/global
../common/users/gburd
../common/optional/gnome.nix
../common/optional/x11-keymap.nix
# ../common/optional/gamemode.nix
../common/optional/pipewire.nix
../common/optional/quietboot.nix
];
networking = {
hostName = "floki";
};
# Enable networking
networking.networkmanager.enable = true;
boot = {
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
};
powerManagement.powertop.enable = true;
programs = {
light.enable = true;
adb.enable = true;
dconf.enable = true;
kdeconnect.enable = true;
};
# Lid settings
services.logind = {
lidSwitch = "suspend";
lidSwitchExternalPower = "lock";
};
xdg.portal = {
enable = true;
wlr.enable = true;
};
hardware = {
opengl = {
enable = true;
extraPackages = with pkgs; [ amdvlk ];
driSupport = true;
driSupport32Bit = true;
};
};
system.stateVersion = "23.05";
}