From bb9b25dac2df1c2d5ee966d194595787155b5679 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 4 Apr 2018 22:18:28 +0200 Subject: Work on odin --- installer.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 installer.nix (limited to 'installer.nix') diff --git a/installer.nix b/installer.nix new file mode 100644 index 00000000..3bdca7ab --- /dev/null +++ b/installer.nix @@ -0,0 +1,34 @@ +{ config, pkgs, lib, ... }: + +{ + imports = [ + + + ]; + + 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"; +} -- cgit v1.2.3