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