permafrost: enable swap

This commit is contained in:
Zynh Ludwig 2024-12-28 00:58:25 -08:00
parent 1318cedfb2
commit fa5642f899
2 changed files with 10 additions and 10 deletions

View file

@ -26,7 +26,11 @@
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = [ ]; swapDevices = [{
device = "/swap";
size = 16 * 1024;
}];
zramSwap.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub = { boot.loader.grub = {

View file

@ -19,17 +19,14 @@ in
"uptime" "uptime"
"s_s_l_certs" "s_s_l_certs"
"filesystems" "filesystems"
"memory"
"docker" "docker"
"service_status" "service_status"
"last_login" "last_login"
]; ];
programs.rust-motd.settings = { programs.rust-motd.settings = {
uptime = { uptime.prefix = "up";
prefix = "up"; filesystems.root = "/";
};
filesystems = {
root = "/";
};
service_status = { service_status = {
Foundry = "foundry"; Foundry = "foundry";
Nginx = "nginx"; Nginx = "nginx";
@ -45,9 +42,8 @@ in
"scarlet.zynh.me" = "${config.security.acme.certs.permafrost.directory}/fullchain.pem"; "scarlet.zynh.me" = "${config.security.acme.certs.permafrost.directory}/fullchain.pem";
}; };
}; };
last_login = { memory.swap_pos = "beside";
ravenshade = 3; last_login.ravenshade = 3;
};
last_run = { }; last_run = { };
}; };
}; };