forked from Zynh0722/permafrost
permafrost: enable swap
This commit is contained in:
parent
1318cedfb2
commit
fa5642f899
2 changed files with 10 additions and 10 deletions
|
@ -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 = {
|
||||||
|
|
|
@ -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 = { };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue