blob: 9276907f7b93660a70c8bb4d87960c084847032e (
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
35
36
37
38
39
40
41
42
43
44
|
{ 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;
environment.systemPackages = with pkgs; [
mosh
tmux
zsh
python3Packages.magic-wormhole
];
networking = {
hostName = "";
firewall = {
enable = true;
allowPing = true;
allowedTCPPorts = [ 22 # ssh
];
allowedUDPPortRanges = [ { from = 60000; to = 61000; } # mosh
];
};
};
users.users.root =
let template = import ./users/gkleen.nix;
in {
inherit (template) shell;
openssh.authorizedKeys.keyFiles = template.openssh.authorizedKeys.keyFiles;
};
services.openssh = {
enable = true;
passwordAuthentication = false;
};
console.keyMap = "dvp";
}
|