mio-ops/hosts/cuallaidh/default.nix

62 lines
1.5 KiB
Nix
Raw 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 = [
2024-08-23 08:00:07 +00:00
../../modules/tmate-ssh-server.nix
../../networks/linode.nix
../../profiles/coturn.nix
../../profiles/iog.nix
../../profiles/ipv6.nix
../../profiles/mastodon.nix
../../profiles/matrix.nix
../../profiles/mcwhirter.io.nix
../../profiles/minecraftServer.nix
../../profiles/nextcloud.nix
../../profiles/nixpkgs-dev.nix
../../profiles/taskserver.nix
../../profiles/tt-rss.nix
2021-11-16 04:57:23 +00:00
];
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
}