More power and boot settings

This commit is contained in:
Cyryl Płotnicki 2019-07-06 08:55:20 +01:00
parent e319f6fc20
commit 638f0fc6d6
2 changed files with 18 additions and 5 deletions

View file

@ -3,9 +3,15 @@
fileSystems."/".options = [ "noatime" "nodiratime" "discard" ]; fileSystems."/".options = [ "noatime" "nodiratime" "discard" ];
boot = { boot = {
kernelModules = [ "acpi_call" ];
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
kernel.sysctl = {
"vm.swappiness" = 1;
};
loader.grub = { loader.grub = {
enable = true; enable = true;
version = 2; version = 2;
useOSProber = true;
}; };
}; };
} }

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, pkgs, lib , ... }:
let let
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz; unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
@ -47,6 +47,7 @@ in
services = { services = {
fwupd.enable = true; fwupd.enable = true;
tlp.enable = true;
printing = { printing = {
enable = true; enable = true;
@ -64,15 +65,19 @@ in
timerConfig = { OnCalendar = "hourly"; }; timerConfig = { OnCalendar = "hourly"; };
}; };
gnome3.chrome-gnome-shell.enable = true; gnome3 = {
gnome3.gnome-keyring.enable = true; chrome-gnome-shell.enable = true;
gnome-keyring.enable = true;
};
xserver = { xserver = {
enable = true; enable = true;
layout = "pl"; layout = "pl";
libinput.enable = true; libinput.enable = true;
desktopManager = { desktopManager = {
gnome3.enable = true; gnome3 = {
enable = true;
};
}; };
displayManager.gdm= { displayManager.gdm= {
enable = true; enable = true;
@ -91,6 +96,8 @@ in
hardware.u2f.enable = true; hardware.u2f.enable = true;
hardware.brightnessctl.enable = true; hardware.brightnessctl.enable = true;
hardware.sane.enable = true; hardware.sane.enable = true;
powerManagement.cpuFreqGovernor = (lib.mkForce null);
nix.gc.automatic = true; nix.gc.automatic = true;
system.autoUpgrade.enable = true; system.autoUpgrade.enable = true;