You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.3 KiB

{ pkgs, inputs, ... }: {
imports = [
inputs.hardware.nixosModules.common-cpu-intel
# inputs.hardware.nixosModules.common-gpu-nvidia
inputs.hardware.nixosModules.common-gpu-intel
inputs.hardware.nixosModules.common-pc-ssd
./hardware-configuration.nix
../common/global
../common/users/misterio
../common/optional/wireless.nix
../common/optional/greetd.nix
../common/optional/pipewire.nix
];
networking = {
hostName = "electra";
};
boot = {
binfmt.emulatedSystems = [ "aarch64-linux" "i686-linux" ];
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
};
# Compliance
services.clamav = {
daemon.enable = true;
updater.enable = true;
};
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 = {
/*
nvidia = {
prime = {
offload.enable = true;
nvidiaBusId = "PCI:1:0:0";
intelBusId = "PCI:0:2:0";
};
};
*/
opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
};
system.stateVersion = "22.05";
}