diff --git a/hosts/permafrost/hardware-configuration.nix b/hosts/permafrost/hardware-configuration.nix index 31d67f3..f98dc32 100644 --- a/hosts/permafrost/hardware-configuration.nix +++ b/hosts/permafrost/hardware-configuration.nix @@ -26,7 +26,11 @@ fsType = "vfat"; }; - swapDevices = [ ]; + swapDevices = [{ + device = "/swap"; + size = 16 * 1024; + }]; + zramSwap.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.loader.grub = { diff --git a/modules/motd.nix b/modules/motd.nix index e219e27..2518f35 100644 --- a/modules/motd.nix +++ b/modules/motd.nix @@ -19,17 +19,14 @@ in "uptime" "s_s_l_certs" "filesystems" + "memory" "docker" "service_status" "last_login" ]; programs.rust-motd.settings = { - uptime = { - prefix = "up"; - }; - filesystems = { - root = "/"; - }; + uptime.prefix = "up"; + filesystems.root = "/"; service_status = { Foundry = "foundry"; Nginx = "nginx"; @@ -45,9 +42,8 @@ in "scarlet.zynh.me" = "${config.security.acme.certs.permafrost.directory}/fullchain.pem"; }; }; - last_login = { - ravenshade = 3; - }; + memory.swap_pos = "beside"; + last_login.ravenshade = 3; last_run = { }; }; };