summaryrefslogtreecommitdiff
path: root/installer.nix
blob: 310105b8d882b2be9b4e31fd6e80bf70aaa38aa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ flake, pkgs, ... }: {
  imports = with flake.nixosModules.systemProfiles; [
    default-locale zfs
  ];

  config = {
    networking.wireless.enable = false;
    
    networking.firewall = {
      enable = true;
      allowedTCPPorts = [ 22 # ssh
                        ];
      allowedUDPPortRanges = [
        { from = 60000; to = 61000; } # mosh
      ];
    };

    systemd.services."sshd".wantedBy = ["multi-user.target"]; 

    services.qemuGuest.enable = true;

    environment.systemPackages = with pkgs; [
      nvme-cli iotop mosh
    ];
  };
}