grace/dots

dotfiles/nix configs

git clone https://git.gae.moe/grace/dots

Grace Yoderi gotta stop doing these massive changesb70d9f9

main
566 B33 linesraw
1{ ... }:
2
3let
4  host = import ../hosts.nix;
5in
6{
7  imports = [ ./switch-notify.nix ];
8
9  nix.settings.experimental-features = [
10    "nix-command"
11    "flakes"
12  ];
13  networking.hostName = host.name;
14  networking.nameservers = [
15    "1.1.1.1"
16    "9.9.9.9"
17  ];
18  environment.sessionVariables.NIX_HOST = host.name;
19
20  services.openssh = {
21    enable = true;
22    openFirewall = true;
23    ports = [
24      22
25      2222
26    ];
27    settings = {
28      PermitRootLogin = "no";
29      PasswordAuthentication = false;
30      KbdInteractiveAuthentication = false;
31    };
32  };
33}