blob: 5fe58494c4410b2773e793bf9bc02230ebc6a749 (
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
|
{ flake, pkgs, ... }: {
imports = with flake.nixosModules.systemProfiles; [
default-locale
];
config = {
boot = {
kernelPackages = pkgs.linuxPackages_latest;
zfs.enableUnstable = true;
};
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
];
};
}
|