2022-05-20 23:04:15 +02:00
|
|
|
{
|
|
|
|
|
lib,
|
|
|
|
|
config,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}: let
|
|
|
|
|
inherit (import <niveum/lib>) kieran retiolumAddresses;
|
|
|
|
|
in {
|
|
|
|
|
imports = [
|
|
|
|
|
./hardware-configuration.nix
|
2022-09-26 09:30:28 +02:00
|
|
|
<niveum/configs/monitoring.nix>
|
2022-05-20 23:04:15 +02:00
|
|
|
<niveum/configs/nix.nix>
|
|
|
|
|
<niveum/configs/save-space.nix>
|
|
|
|
|
<niveum/configs/spacetime.nix>
|
|
|
|
|
<niveum/configs/sshd.nix>
|
|
|
|
|
<niveum/modules/retiolum.nix>
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
nix.nixPath = ["/var/src"];
|
|
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
|
firewall.allowedTCPPorts = [80 443];
|
|
|
|
|
hostName = "ful";
|
|
|
|
|
interfaces.enp0s3.useDHCP = true;
|
|
|
|
|
retiolum = retiolumAddresses.ful;
|
|
|
|
|
useDHCP = false;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
system.stateVersion = "21.11";
|
|
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
|
enable = true;
|
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
|
sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
security.acme = {
|
|
|
|
|
acceptTerms = true;
|
2022-07-19 21:33:45 +02:00
|
|
|
defaults.email = kieran.email;
|
2022-05-20 23:04:15 +02:00
|
|
|
};
|
|
|
|
|
|
2022-05-21 23:06:49 +02:00
|
|
|
users.users.root.passwordFile = toString <system-secrets/root.password>;
|
|
|
|
|
|
2022-05-20 23:04:15 +02:00
|
|
|
environment.systemPackages = [pkgs.vim pkgs.git pkgs.tmux pkgs.python3];
|
|
|
|
|
}
|