mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 23:14:57 +08:00
pureintent: add swap
This commit is contained in:
parent
4adbef90b2
commit
31add36609
1 changed files with 6 additions and 0 deletions
|
|
@ -37,6 +37,12 @@ in
|
|||
|
||||
nix.settings.sandbox = "relaxed";
|
||||
|
||||
zramSwap.enable = true;
|
||||
swapDevices = [{
|
||||
device = "/var/lib/swapfile";
|
||||
size = 32 * 1024; # 32GB in megabytes
|
||||
}];
|
||||
|
||||
services.openssh.enable = true;
|
||||
services.tailscale.enable = true;
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue