mio-ops/hosts/cuallaidh.nix

65 lines
1.6 KiB
Nix
Raw Permalink Normal View History

2019-07-02 01:35:00 +00:00
# NixOps configuration for cuallaidh
2019-12-09 04:57:53 +00:00
{
2022-03-07 14:26:15 +00:00
config,
pkgs,
lib,
...
}: {
2021-11-16 04:57:23 +00:00
imports = [
2022-06-22 05:41:37 +00:00
../modules/tmate-ssh-server.nix
2021-11-16 04:57:23 +00:00
../networks/linode.nix
../profiles/coturn.nix
2022-12-08 22:16:28 +00:00
#../profiles/cryptpad.nix
2021-11-16 04:57:23 +00:00
#../profiles/hydra.nix
2022-05-25 22:29:02 +00:00
../profiles/iog.nix
2022-03-07 14:26:15 +00:00
../profiles/ipv6.nix
../profiles/mastodon.nix
2021-11-16 04:57:23 +00:00
../profiles/matrix.nix
../profiles/mcwhirter.io.nix
2021-11-16 04:57:23 +00:00
../profiles/minecraftServer.nix
../profiles/nextcloud.nix
../profiles/nixpkgs-dev.nix
../profiles/taskserver.nix
../profiles/tt-rss.nix
../secrets/tt-rss.nix
];
2019-08-20 11:02:58 +00:00
2019-12-09 04:57:53 +00:00
deployment.targetHost = "172.105.171.16";
2019-07-02 01:35:00 +00:00
2021-11-16 04:57:23 +00:00
networking.hostName = "cuallaidh"; # Define your hostname.
2022-03-07 14:26:15 +00:00
networking.interfaces.eth0.ipv6.addresses = [
{
address = "2400:8907::f03c:92ff:fe08:f1d4";
prefixLength = 64;
}
];
2019-08-20 11:02:58 +00:00
2024-02-27 14:09:54 +00:00
services = {
tmate = {
enable = true;
openFirewall = true;
sshHostname = "tmate.mcwhirter.io";
};
nginx = {
virtualHosts."git.mcwhirter.io" = {
enableACME = true;
forceSSL = true;
globalRedirect = "reciproka.dev"; # Redirect permanently to the host
};
2024-02-27 14:09:54 +00:00
virtualHosts."source.mcwhirter.io" = {
enableACME = true;
forceSSL = true;
globalRedirect = "reciproka.dev"; # Redirect permanently to the host
};
};
};
security.acme = {
acceptTerms = true;
certs = {"git.mcwhirter.io" = {email = "craige@mcwhirter.io";};};
2024-02-27 14:09:54 +00:00
certs = {"source.mcwhirter.io" = {email = "craige@mcwhirter.io";};};
2022-06-22 05:41:37 +00:00
};
2021-11-16 04:57:23 +00:00
system.stateVersion = "19.03"; # The version of NixOS originally installed
2019-07-02 01:35:00 +00:00
}