Lobotomize jupiter cpu
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -13,7 +13,7 @@ in
|
||||
sops = {
|
||||
secrets."nix/cache/nix.karaolidis.com".sopsFile = "${inputs.secrets}/domains/personal/secrets.yaml";
|
||||
|
||||
templates."attic" = {
|
||||
templates.attic = {
|
||||
content = builtins.readFile (
|
||||
(pkgs.formats.toml { }).generate "config.toml" {
|
||||
default-server = "main";
|
||||
|
@@ -88,7 +88,6 @@
|
||||
services = {
|
||||
xserver.videoDrivers = [ "nvidia" ];
|
||||
fstrim.enable = true;
|
||||
tlp.settings.DISK_DEVICES = lib.mkDefault "nvme0n1 nvme1n1";
|
||||
|
||||
asusd = {
|
||||
enable = true;
|
||||
|
@@ -1,7 +1,6 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
@@ -65,8 +64,17 @@
|
||||
config.virtualisation.containerd.enable || config.virtualisation.podman.enable;
|
||||
};
|
||||
|
||||
# Lobotomize CPU so that it stays below boiling temps
|
||||
powerManagement = {
|
||||
cpuFreqGovernor = "conservative";
|
||||
cpufreq = {
|
||||
min = 403488;
|
||||
max = 4465261;
|
||||
};
|
||||
};
|
||||
|
||||
boot = {
|
||||
kernelParams = [ "amd_pstate=active" ];
|
||||
kernelParams = [ "amd_pstate=passive" ];
|
||||
kernelModules = [ "kvm-amd" ];
|
||||
initrd.kernelModules = [
|
||||
"nvme"
|
||||
@@ -92,7 +100,6 @@
|
||||
services = {
|
||||
xserver.videoDrivers = [ "nvidia" ];
|
||||
fstrim.enable = true;
|
||||
tlp.settings.DISK_DEVICES = lib.mkDefault "nvme0n1 nvme1n1";
|
||||
logind.settings.Login.HandleLidSwitch = "ignore";
|
||||
};
|
||||
}
|
||||
|
@@ -27,7 +27,7 @@ in
|
||||
ATTIC_TOKEN=${hmConfig.sops.placeholder."attic/admin"}
|
||||
'';
|
||||
|
||||
attic.content = builtins.readFile (
|
||||
attic-server.content = builtins.readFile (
|
||||
(pkgs.formats.toml { }).generate "server.toml" {
|
||||
listen = "[::]:8080";
|
||||
|
||||
@@ -85,7 +85,7 @@ in
|
||||
];
|
||||
volumes = [
|
||||
"/mnt/storage/private/storm/containers/storage/volumes/attic/_data:/var/lib/attic"
|
||||
"${hmConfig.sops.templates.attic.path}:/etc/attic/server.toml"
|
||||
"${hmConfig.sops.templates.attic-server.path}:/etc/attic/server.toml"
|
||||
];
|
||||
environmentFiles = [ hmConfig.sops.templates.attic-env.path ];
|
||||
exec = [
|
||||
|
Reference in New Issue
Block a user