Also add some power management to mimir
This commit is contained in:
parent
363e7678c6
commit
4ebe8cc8ba
2 changed files with 7 additions and 11 deletions
|
@ -108,6 +108,10 @@
|
||||||
"miniflux"
|
"miniflux"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
powerManagement = {
|
||||||
|
cpuFreqGovernor = "ondemand";
|
||||||
|
};
|
||||||
|
|
||||||
systemd.network = {
|
systemd.network = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,11 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
{ config, pkgs, ... }: {
|
||||||
# and may be overwritten by future invocations. Please make changes
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" ];
|
|
||||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||||
boot.kernelModules = [ "kvm-amd" "apple-mfi-fastcharge" "zenpower" ];
|
boot.kernelModules = [ "kvm-amd" "apple-mfi-fastcharge" "zenpower" ];
|
||||||
|
boot.kernelParams = [ "amd_pstate.shared_mem=1" ];
|
||||||
boot.extraModulePackages = [ ] ++
|
boot.extraModulePackages = [ ] ++
|
||||||
(with config.boot.kernelPackages; [ rtl88x2bu zenpower ]);
|
(with config.boot.kernelPackages; [ rtl88x2bu zenpower ]);
|
||||||
|
|
||||||
boot.extraModprobeConfig = ''
|
|
||||||
options amd-pstate shared_mem=true
|
|
||||||
'';
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-label/nixos";
|
device = "/dev/disk/by-label/nixos";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
|
|
Loading…
Reference in a new issue