mio-ops/hosts/cuallaidh/default.nix

61 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
2024-09-28 04:06:46 +00:00
../../profiles/mcwhirter.io.nix
#../../profiles/minecraftServer.nix
2024-08-23 08:00:07 +00:00
../../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
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;
2024-08-25 12:34:32 +00:00
defaults.email = "acme@mcwhirter.io";
certs = {"git.mcwhirter.io" = {};};
certs = {"source.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
}