1 { pkgs, lib, config, wireguard, ... }:
3 inherit (builtins) readFile;
4 #inherit (builtins.extraBuiltins) pass-chomp;
5 userLib = import ./lib.nix { inherit lib; };
9 openssh.authorizedKeys.keys = [
10 (readFile ../../sec/ssh/julm.pub)
11 (readFile ../../sec/ssh/julm-mob.pub)
12 (readFile ../../sec/ssh/julm-mermet.pub)
13 (readFile ../../sec/ssh/julm-losurdo.pub)
15 #hashedPassword = pass-chomp "members/login/julm/hashedPassword";
16 useDefaultShell = true;
19 #uid = userLib.mkUid "julm";
21 networking.wireguard.interfaces."wg-intranet".peers = [
22 { allowedIPs = [ "192.168.42.3/32" ];
23 publicKey = "QV5rA6FU7PyTD7nvFI7H/X+zkjhjP5EzVHfODEpj+BM=";
24 persistentKeepalive = wireguard."wg-intranet".persistentKeepalive;