-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
173 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,12 +42,8 @@ email IN CNAME eu.mailgun.org. | |
_dmarc IN TXT "v=DMARC1; p=reject; rua=mailto:[email protected]; ruf=mailto:[email protected]" | ||
_smtp._tls IN TXT "v=TLSRPTv1; rua=mailto:[email protected]" | ||
mail._domainkey IN TXT ( "v=DKIM1; k=rsa; " | ||
"p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyeerwJv8l/ec+I8s/hcnemFTsfWC4F5LFse0N3wNA+yAbF4+UBIcWYDTjRmqNuyf//HND6Yoy1KUIzsueYmvWT/CpfUModqrxD6r52ZUL4QWxwm40IAZwi8zsrLdESHIF0qsQ9SSCxUSZPg7VLVk2ggwbxGX5bSUvt47fx4kywAl+mIF6xU7EPys4PHIogzIj8h8FGuHUI9FqT" | ||
"HZPpNJcpVU8bdUrlGIcm+YonsDF3sh17xRiAOg1EUsO/3YKpMGopFppLHYh+FUBsO5iUO/xQ0IdvUqDaF61UiywvNN6Jv5HHq2UQt47ew/1zNWzHT8MjUKhOz0zKSn2OF9UUW18wIDAQAB" ) | ||
; mail._domainkey IN TXT ( "v=DKIM1; k=rsa; " | ||
; "p=MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAuxEkSd887tJnfncjJnXsmK+YcYzZKrhLE+Ew58Sjq8j1EDSuHdBdYzF7vBOO+CjbqKxacFSa6ClvgNHtKbSQAZnuJHDpq54eD77Y+XrZpUJ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 _imap._tcp IN SRV 5 0 143 mail.jakubarbet.me. | |
_imaps._tcp IN SRV 5 0 993 mail.jakubarbet.me. | ||
_submission._tcp IN SRV 5 0 587 mail.jakubarbet.me. | ||
_submissions._tcp IN SRV 5 0 465 mail.jakubarbet.me. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{...}: { | ||
services = { | ||
openssh = { | ||
enable = true; | ||
settings.PasswordAuthentication = false; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{config, ...}: let | ||
user = "jakub"; | ||
in { | ||
services = { | ||
nginx.virtualHosts.${config.networking.fqdn}.locations."/syncthing/" = { | ||
extraConfig = "auth_request /auth;"; | ||
proxyPass = "http://localhost:8384/"; | ||
}; | ||
syncthing = { | ||
enable = true; | ||
user = user; | ||
dataDir = "${config.users.users.${user}.home}/Sync"; | ||
|
||
# https://docs.syncthing.net/users/config.html#config-option-gui.insecureskiphostcheck | ||
settings.gui.insecureSkipHostcheck = true; | ||
}; | ||
}; | ||
|
||
# Syncthing ports: | ||
# - 22000 TCP and/or UDP for sync traffic | ||
# - 21027/UDP for discovery | ||
# source: https://docs.syncthing.net/users/firewall.html | ||
networking.firewall = { | ||
allowedTCPPorts = [22000]; | ||
allowedUDPPorts = [22000 21027]; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
config, | ||
lib, | ||
... | ||
}: { | ||
age.secrets = lib._.defineSecrets ["organ-jakub-password-hash"] {}; | ||
|
||
users.users = { | ||
jakub = { | ||
hashedPasswordFile = config.age.secrets.organ-jakub-password-hash.path; | ||
openssh.authorizedKeys.keys = [config.sshPublicKey]; | ||
isNormalUser = true; | ||
extraGroups = ["wheel"]; | ||
shell = pkgs.zsh; | ||
}; | ||
}; | ||
|
||
programs.zsh.enable = true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# [nixos/nix-darwin] | ||
# nix with sensible defaults | ||
{ | ||
inputs, | ||
lib, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# [nixos/nix-darwin] | ||
# common packages shared across all systems | ||
{pkgs, ...}: { | ||
environment.systemPackages = with pkgs; [ | ||
alejandra | ||
git | ||
curl | ||
wget | ||
neovim | ||
]; | ||
} |
Oops, something went wrong.