2024-05-30 16:54:58 -03:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2024-03-28 21:56:52 -03:00
|
|
|
imports = [
|
2024-09-27 20:26:11 -03:00
|
|
|
inputs.vpsadminos.nixosConfigurations.container
|
2024-03-28 21:56:52 -03:00
|
|
|
inputs.agenix.nixosModules.default
|
|
|
|
../../system/nix.nix
|
|
|
|
./hardware-config.nix
|
|
|
|
./mastodon.nix
|
|
|
|
./nextcloud.nix
|
|
|
|
./nginx.nix
|
|
|
|
./syncthing.nix
|
|
|
|
./users.nix
|
|
|
|
./writefreely.nix
|
|
|
|
./email.nix
|
2024-04-06 20:38:35 -03:00
|
|
|
./forgejo.nix
|
2024-06-22 14:20:37 -03:00
|
|
|
./warthunder-leak-counter.nix
|
2024-07-15 01:45:32 -03:00
|
|
|
./invidious.nix
|
2024-08-20 10:50:40 -03:00
|
|
|
./davi.nix
|
2024-03-28 21:56:52 -03:00
|
|
|
];
|
|
|
|
|
2024-06-07 01:50:56 -03:00
|
|
|
networking.hostName = "phantom";
|
|
|
|
|
2024-05-11 18:00:19 -03:00
|
|
|
services.nginx.virtualHosts."lelgenio.com" = {
|
2024-04-09 00:42:40 -03:00
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
root = pkgs.runCommand "www-dir" { } ''
|
|
|
|
mkdir -p $out
|
|
|
|
cat > $out/index.html <<EOF
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<body>
|
|
|
|
<h1>
|
|
|
|
Nothing to see here!
|
|
|
|
<h1>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-03-28 21:56:52 -03:00
|
|
|
# # Enable networking
|
|
|
|
# networking.networkmanager.enable = true;
|
|
|
|
# Set your time zone.
|
|
|
|
time.timeZone = "America/Sao_Paulo";
|
|
|
|
# Select internationalisation properties.
|
|
|
|
i18n.defaultLocale = "pt_BR.utf8";
|
|
|
|
|
|
|
|
boot.kernel.sysctl."fs.inotify.max_user_watches" = 1048576;
|
|
|
|
|
|
|
|
age = {
|
|
|
|
identityPaths = [ "/root/.ssh/id_rsa" ];
|
|
|
|
};
|
|
|
|
|
2024-09-30 11:49:48 -03:00
|
|
|
virtualisation.docker = {
|
|
|
|
enable = true;
|
|
|
|
daemon.settings = {
|
|
|
|
# needed by bitbucket runner ???
|
|
|
|
log-driver = "json-file";
|
|
|
|
log-opts = {
|
|
|
|
max-size = "10m";
|
|
|
|
max-file = "3";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-06-25 12:23:12 -03:00
|
|
|
nix.settings = {
|
|
|
|
cores = 1;
|
|
|
|
max-jobs = 1;
|
|
|
|
};
|
|
|
|
|
2024-03-28 21:56:52 -03:00
|
|
|
system.autoUpgrade = {
|
|
|
|
enable = true;
|
|
|
|
dates = "04:40";
|
|
|
|
operation = "switch";
|
2024-05-30 16:54:58 -03:00
|
|
|
flags = [
|
|
|
|
"--update-input"
|
|
|
|
"nixpkgs"
|
|
|
|
"--no-write-lock-file"
|
2024-06-25 12:23:12 -03:00
|
|
|
"--print-build-logs"
|
2024-05-30 16:54:58 -03:00
|
|
|
];
|
2024-05-11 18:00:19 -03:00
|
|
|
flake = "git+https://git.lelgenio.com/lelgenio/nixos-config#phantom";
|
2024-03-28 21:56:52 -03:00
|
|
|
};
|
|
|
|
|
2024-05-20 16:07:05 -03:00
|
|
|
networking.firewall.allowedTCPPorts = [ 8745 ];
|
|
|
|
|
2024-03-28 21:56:52 -03:00
|
|
|
system.stateVersion = "23.05"; # Never change this
|
|
|
|
}
|