Compare commits
No commits in common. "712cca59093ec0c103e2573560b141a4dec94923" and "b12aac6421ad012729cc86d7f770b94206fa9290" have entirely different histories.
712cca5909
...
b12aac6421
2 changed files with 23 additions and 9 deletions
|
@ -23,14 +23,7 @@
|
||||||
pkiBundle = "/var/lib/sbctl";
|
pkiBundle = "/var/lib/sbctl";
|
||||||
};
|
};
|
||||||
kernelModules = [ "kvm-amd" ];
|
kernelModules = [ "kvm-amd" ];
|
||||||
# Hopefully fixes suspend issues with wifi card
|
extraModulePackages = [ pkgs.linuxPackages.v4l2loopback ];
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
kernelParams = [
|
|
||||||
"resume=UUID=81dfbfa5-d578-479c-b11c-3ee5abd6848a"
|
|
||||||
"resume_offset=79859524"
|
|
||||||
"zswap.enabled=1"
|
|
||||||
];
|
|
||||||
extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
|
|
||||||
# Lanzaboote currently replaces the systemd-boot module.
|
# Lanzaboote currently replaces the systemd-boot module.
|
||||||
# This setting is usually set to true in configuration.nix
|
# This setting is usually set to true in configuration.nix
|
||||||
# generated at installation time. So we force it to false
|
# generated at installation time. So we force it to false
|
||||||
|
@ -72,6 +65,10 @@
|
||||||
powerManagement = {
|
powerManagement = {
|
||||||
enable = true;
|
enable = true;
|
||||||
cpuFreqGovernor = "schedutil";
|
cpuFreqGovernor = "schedutil";
|
||||||
|
# TODO: Limit charge of battery, does this work without kernel patches from hardware.frameworkenableKmod?
|
||||||
|
powerUpCommands = ''
|
||||||
|
echo 80 > /sys/class/power_supply/BAT0/charge_control_stop_threshold
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
@ -177,6 +174,10 @@
|
||||||
"dbus-org.freedesktop.ModemManager1".enable = lib.mkForce false;
|
"dbus-org.freedesktop.ModemManager1".enable = lib.mkForce false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.sleep.extraConfig = ''
|
||||||
|
HibernateDelaySec=1h
|
||||||
|
'';
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"v /var/.snapshots 0755 root root - -"
|
"v /var/.snapshots 0755 root root - -"
|
||||||
"v /var/paperless/.snapshots 0755 root root - -"
|
"v /var/paperless/.snapshots 0755 root root - -"
|
||||||
|
@ -204,7 +205,20 @@
|
||||||
"wireshark"
|
"wireshark"
|
||||||
"paperless"
|
"paperless"
|
||||||
];
|
];
|
||||||
|
shell = "/run/current-system/sw/bin/zsh";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TODO
|
||||||
|
# age.secrets = {
|
||||||
|
# paperless = {
|
||||||
|
# file = "${config.dadada.secrets.path}/paperless.age";
|
||||||
|
# mode = "700";
|
||||||
|
# owner = "paperless";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
|
# Create compressing swap space in RAM
|
||||||
|
zramSwap.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,7 @@
|
||||||
};
|
};
|
||||||
"/swap" = {
|
"/swap" = {
|
||||||
mountpoint = "/.swapvol";
|
mountpoint = "/.swapvol";
|
||||||
swap.swapfile.size = "128G";
|
swap.swapfile.size = "64G";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue