summaryrefslogtreecommitdiff
path: root/installer.nix
blob: 3bdca7ab0afa334b7f4b9eb29f5cc050f4ce10e3 (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
27
28
29
30
31
32
33
34
{ config, pkgs, lib, ... }:

{
  imports = [
    <nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix>
    <nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
  ];

  boot.kernelPackages = pkgs.linuxPackages_latest;

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

  environment.systemPackages = with pkgs; [
    mosh
    tmux
    zsh
    pythonPackages.magic-wormhole
  ];

  networking = {
    hostName = "";
  
    firewall = {
      enable = true;
      allowPing = true;
      allowedTCPPorts = [ 22 # ssh
                        ];
      allowedUDPPortRanges = [ { from = 60000; to = 61000; } # mosh
                             ];
    };
  };

  i18n.consoleKeyMap = "dvp";
}