Update Lilim config.

This commit is contained in:
Kevin Baensch 2023-01-29 14:35:38 +01:00
parent f6a24ff9f6
commit 775bc3a9f4
Signed by: derped
GPG key ID: C0F1D326C7626543
2 changed files with 22 additions and 10 deletions

View file

@ -18,7 +18,12 @@ in {
kernelPackages = pkgs.linuxPackages_latest; kernelPackages = pkgs.linuxPackages_latest;
initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" "rtsx_pci_sdmmc" ]; initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" "rtsx_pci_sdmmc" ];
kernelModules = [ "i915" "kvm-intel" "uinput" ]; kernelModules = [ "acpi_call" "i915" "kvm-intel" "uinput" ];
# 5_10 breaks my touchpad/mouse buttons
# https://bbs.archlinux.org/viewtopic.php?id=254885
# maybe modprobe hid_rmi or i2c_i801
# blacklistedKernelModules = [ "i2c_i801" ];
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ]; #pkgs.gitpkgs.linuxPackages_latest.hid-nintendo ];
kernelParams = [ "intel_iommu=on" ]; kernelParams = [ "intel_iommu=on" ];
extraModprobeConfig = '' extraModprobeConfig = ''
options i915 enable_fbc=1 enable_guc=3 options i915 enable_fbc=1 enable_guc=3
@ -43,7 +48,7 @@ in {
hardware = { hardware = {
firmware = with pkgs; [ firmwareLinuxNonfree ]; firmware = with pkgs; [ firmwareLinuxNonfree ];
cpu.intel.updateMicrocode = true; cpu.intel.updateMicrocode = true;
enableAllFirmware = true; enableAllFirmware = false;
ksm.enable = true; ksm.enable = true;
opengl = { opengl = {
driSupport = true; driSupport = true;
@ -72,7 +77,10 @@ in {
enable = true; enable = true;
cpuFreqGovernor = "powersave"; cpuFreqGovernor = "powersave";
}; };
services.upower.enable = true; services = {
upower.enable = true;
xserver.videoDrivers = [ "intel" ];
};
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";
} }

View file

@ -9,7 +9,8 @@ with lib;
config.machine = { config.machine = {
allowUnfree = true; allowUnfree = true;
hostName = "Lilim"; hostName = "Lilim";
administrators = [ { name = "derped"; id = 1337; } ]; useNetworkd = true;
administrators = [ { name = "derped"; id = 1337; } { name = "testy"; id = 1338; } ];
conffiles = [ conffiles = [
"etcfiles" "etcfiles"
"etcvars" "etcvars"
@ -20,21 +21,23 @@ with lib;
"base" "base"
"cpp" "cpp"
"dict" "dict"
"nodejs"
"latex"
"emacs" "emacs"
"emacs::company" "emacs::company"
"emacs::direnv"
"emacs::doom-modeline" "emacs::doom-modeline"
"emacs::doom-themes" "emacs::doom-themes"
"emacs::elpy" "emacs::elpy"
"emacs::fcitx"
"emacs::flycheck" "emacs::flycheck"
"emacs::flyspell" "emacs::flyspell"
"emacs::latex" "emacs::latex"
"emacs::lsp" "emacs::lsp"
"emacs::magit" "emacs::magit"
"emacs::mu4e" "emacs::mu4e"
"emacs::elfeed"
"emacs::nix-mode" "emacs::nix-mode"
"emacs::org" "emacs::org"
"emacs::rust"
"emacs::transmission" "emacs::transmission"
"emacs::web-mode" "emacs::web-mode"
"emacs::yasnippet" "emacs::yasnippet"
@ -42,16 +45,17 @@ with lib;
"haskell" "haskell"
"mail_utils" "mail_utils"
"python3" "python3"
"rustpkgs"
"xpkgs" "xpkgs"
# "emacs::lsp"
# "emacs::powerline"
# "emacs::solarized-theme"
]; ];
services = [ services = [
"bind"
"desktop" "desktop"
"udev" "udev"
"cups" "cups"
"mullvad"
"mariaDB"
"nspawn"
"docker"
]; ];
firewall = { firewall = {
enable = true; enable = true;