]> Git — Sourcephile - sourcephile-nix.git/blob - hosts/carotte/users.nix
nix: update inputs
[sourcephile-nix.git] / hosts / carotte / users.nix
1 { inputs, pkgs, lib, config, ... }:
2 let
3 inherit (config.security) gnupg;
4 inherit (config.users) users;
5 in
6 {
7 imports = [
8 ../../members/julm.nix
9 ];
10
11 nix.settings.trusted-users = [
12 users."julm".name
13 ];
14
15 users = {
16 mutableUsers = false;
17 users = {
18 root = {
19 openssh.authorizedKeys.keys =
20 users."julm".openssh.authorizedKeys.keys;
21 hashedPassword = "!";
22 };
23 /*
24 gnupg = {
25 openssh.authorizedKeys.keys =
26 users."root".openssh.authorizedKeys.keys;
27 };
28 */
29 };
30 groups = {
31 /*
32 adbusers.members = [ users."julm".name ];
33 dialout.members = [ users."julm".name ];
34 gpg-agent.members = [ users."julm".name ];
35 tor.members = [ users."julm".name ];
36 */
37 wheel.members = [ users."julm".name ];
38 };
39 };
40
41 #security.gnupg.secrets."/root/.ssh/id_ed25519" = {
42 # gpg = "${gnupg.store}/ssh/root.ssh-ed25519.gpg";
43 #};
44
45 /*
46 networking.nftables.ruleset = lib.concatMapStringsSep "\n"
47 (rule: "add rule inet filter fw2net meta skuid ${users.julm.name} " + rule) [
48 ''tcp dport {25,465} counter accept comment "SMTP"''
49 ''tcp dport 43 counter accept comment "Whois"''
50 ''tcp dport 993 counter accept comment "IMAPS"''
51 ''tcp dport 6697 counter accept comment "IRCS"''
52 ''tcp dport 2222 counter accept comment "SSH(boot)"''
53 ''tcp dport 5222 counter accept comment "XMPP"''
54 ''tcp dport 11371 counter accept comment "HKP"''
55 ''tcp dport {9009,9010,9011,9012,9013} counter accept comment "croc"''
56 ''udp dport 33434-33523 counter accept comment "traceroute"''
57 ''udp dport 60000-61000 counter accept comment "Mosh"''
58 #''ip protocol tcp counter accept comment "all"''
59 ];
60 */
61 }