]> Git — Sourcephile - sourcephile-nix.git/blob - machines/losurdo/users.nix
dovecot: update fts_xapian
[sourcephile-nix.git] / machines / losurdo / users.nix
1 { pkgs, lib, config, ... }:
2 let
3 inherit (builtins.extraBuiltins) pass-chomp;
4 inherit (config.users) users;
5 in
6 {
7 imports = [
8 ../../members/julm.nix
9 ];
10
11 nix.trustedUsers = [
12 users."julm".name
13 ];
14
15 networking.nftables.ruleset = lib.concatMapStringsSep "\n"
16 (rule: "add rule inet filter fw2net meta skuid ${users.julm.name} " + rule) [
17 ''tcp dport {25,465} counter accept comment "SMTP"''
18 ''tcp dport 43 counter accept comment "Whois"''
19 ''tcp dport 6697 counter accept comment "IRCS"''
20 ''tcp dport 5222 counter accept comment "XMPP"''
21 ''tcp dport 11371 counter accept comment "HKP"''
22 ''tcp dport {9009,9010,9011,9012,9013} counter accept comment "croc"''
23 ];
24
25 users = {
26 mutableUsers = false;
27 users = {
28 root = {
29 openssh.authorizedKeys.keys =
30 users."julm".openssh.authorizedKeys.keys;
31 hashedPassword = "!";
32 };
33 julm = {
34 hashedPassword = pass-chomp "machines/losurdo/login/julm/hashedPassword";
35 };
36 };
37 groups = {
38 wheel = {
39 members = [
40 users."julm".name
41 ];
42 };
43 };
44 };
45
46 security.gnupg.secrets."/root/.ssh/id_ed25519" = {};
47 }