mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
swap
This commit is contained in:
parent
a6addfe549
commit
0b948182ba
1 changed files with 3 additions and 0 deletions
|
|
@ -20,6 +20,9 @@ let
|
|||
systemd.services."getty@tty1".enable = false;
|
||||
systemd.services."autovt@".enable = false;
|
||||
|
||||
# sufficient swap for functioning nix-build on 1G droplets
|
||||
swapDevices = [{ device = "/swapfile"; size = 2048; }];
|
||||
|
||||
# Make sure that SSH is available
|
||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||
services.sshd.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue