1 { inputs, pkgs, lib, config, hostName, ... }:
3 inherit (config.security) gnupg;
4 inherit (config.users) users;
11 nixpkgs.config.allowUnfree = true; # for hplip
20 openssh.authorizedKeys.keys =
21 users."julm".openssh.authorizedKeys.keys;
25 openssh.authorizedKeys.keys =
26 users."root".openssh.authorizedKeys.keys;
29 openssh.authorizedKeys.keys = [
33 openssh.authorizedKeys.keys = [
34 (lib.readFile (inputs.secrets + "/members/ssh/sevy-patate.pub"))
35 (lib.readFile (inputs.secrets + "/members/ssh/julm-carotte.pub"))
60 #security.gnupg.secrets."/root/.ssh/id_ed25519" = {
61 # gpg = "${gnupg.store}/ssh/root.ssh-ed25519.gpg";
64 networking.nftables.ruleset = lib.concatMapStringsSep "\n"
65 (rule: "add rule inet filter fw2net meta skuid ${users.julm.name} " + rule) [
66 ''tcp dport {25,465} counter accept comment "SMTP"''
67 ''tcp dport 43 counter accept comment "Whois"''
68 ''tcp dport 993 counter accept comment "IMAPS"''
69 ''tcp dport 6697 counter accept comment "IRCS"''
70 ''tcp dport 2222 counter accept comment "SSH(boot)"''
71 ''tcp dport 5222 counter accept comment "XMPP"''
72 ''tcp dport 11371 counter accept comment "HKP"''
73 ''tcp dport {9009,9010,9011,9012,9013} counter accept comment "croc"''
74 ''udp dport 33434-33523 counter accept comment "traceroute"''
75 ''udp dport 60000-61000 counter accept comment "Mosh"''
76 #''ip protocol tcp counter accept comment "all"''