1 { inputs, pkgs, lib, config, ... }:
3 inherit (config.security) gnupg;
4 inherit (config.users) users;
19 openssh.authorizedKeys.keys =
20 users."julm".openssh.authorizedKeys.keys;
40 security.gnupg.secrets."/root/.ssh/id_ed25519" = {
41 gpg = "${gnupg.store}/ssh/root.ssh-ed25519.gpg";
44 networking.nftables.ruleset = lib.concatMapStringsSep "\n"
45 (rule: "add rule inet filter fw2net meta skuid ${users.julm.name} " + rule) [
46 ''tcp dport {25,465} counter accept comment "SMTP"''
47 ''tcp dport 43 counter accept comment "Whois"''
48 ''tcp dport 993 counter accept comment "IMAPS"''
49 ''tcp dport 6697 counter accept comment "IRCS"''
50 ''tcp dport 5222 counter accept comment "XMPP"''
51 ''tcp dport 11371 counter accept comment "HKP"''
52 ''tcp dport {9009,9010,9011,9012,9013} counter accept comment "croc"''
53 ''udp dport 33434-33523 counter accept comment "traceroute"''
54 #''ip protocol tcp counter accept comment "all"''