1 { inputs, pkgs, lib, config, hostName, ... }:
3 inherit (config.users) users;
10 nixpkgs.config.allowUnfree = true; # for hplip
11 nix.settings.trusted-users = [
19 openssh.authorizedKeys.keys =
20 users."julm".openssh.authorizedKeys.keys;
24 openssh.authorizedKeys.keys =
25 users."root".openssh.authorizedKeys.keys;
28 openssh.authorizedKeys.keys = [
32 openssh.authorizedKeys.keys = [
33 (lib.readFile (inputs.secrets + "/members/ssh/sevy-patate.pub"))
34 (lib.readFile (inputs.secrets + "/members/ssh/julm-carotte.pub"))
59 #security.gnupg.secrets."/root/.ssh/id_ed25519" = {
60 # gpg = "${gnupg.store}/ssh/root.ssh-ed25519.gpg";
63 networking.nftables.ruleset = ''
65 chain output-net-julm {
66 tcp dport {smtp, submissions} counter accept comment "SMTP"
67 tcp dport nicname counter accept comment "Whois"
68 tcp dport imaps counter accept comment "IMAPS"
69 tcp dport ircs-u counter accept comment "IRCS"
70 tcp dport 2222 counter accept comment "SSH(boot)"
71 tcp dport xmpp-client counter accept comment "XMPP"
72 tcp dport hkp 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"
78 skuid ${users.julm.name} jump output-net-julm