3 inherit (config.users) users;
7 ../../../users/julm.nix
11 hashedPassword = lib.readFile julm/hashedPassword.clear;
12 openssh.authorizedKeys.keys = map lib.readFile [
13 ../../../users/julm/ssh/mob.pub
14 ../../../users/julm/ssh/losurdo.pub
22 users.users.root.openssh.authorizedKeys.keys =
24 ../../../users/julm/ssh/gnupg.pub
25 ../../../users/julm/ssh/losurdo.pub
26 ../../../users/julm/ssh/oignon.pub
29 nix.settings.trusted-users = [
33 services.sanoid.datasets = {
34 "rpool/home/julm/mail" = {
35 use_template = [ "snap" ];
36 # Not until https://github.com/jimsalterjrs/sanoid/pull/342#issuecomment-980494511 has been fixed
40 "rpool/home/julm/log" = {
41 use_template = [ "snap" ];
42 # Not until https://github.com/jimsalterjrs/sanoid/pull/342#issuecomment-980494511 has been fixed
47 "rpool/backup/losurdo/home/julm/work" = {
48 use_template = [ "prune" ];
53 networking.nftables.ruleset = ''
55 chain output-net-julm {
56 tcp dport {smtp, submissions} counter accept comment "SMTP"
57 tcp dport nicname counter accept comment "Whois"
58 tcp dport imaps counter accept comment "IMAPS"
59 tcp dport ircs-u counter accept comment "IRCS"
60 tcp dport 2222 counter accept comment "SSH(boot)"
61 tcp dport xmpp-client counter accept comment "XMPP"
62 tcp dport hkp counter accept comment "HKP"
63 tcp dport {9009,9010,9011,9012,9013} counter accept comment "croc"
64 udp dport 33434-33523 counter accept comment "traceroute"
65 udp dport 60000-61000 counter accept comment "Mosh"
68 skuid ${users.julm.name} jump output-net-julm