2023-10-26 11:27:09 -03:00
|
|
|
{ config, pkgs, inputs, ... }: {
|
|
|
|
imports = [
|
|
|
|
"${inputs.nixpkgs}/nixos/modules/virtualisation/digital-ocean-image.nix"
|
|
|
|
inputs.agenix.nixosModules.default
|
|
|
|
../../system/nix.nix
|
|
|
|
./hardware-config.nix
|
|
|
|
./mastodon.nix
|
|
|
|
./nextcloud.nix
|
|
|
|
./nginx.nix
|
|
|
|
./syncthing.nix
|
|
|
|
./users.nix
|
|
|
|
./writefreely.nix
|
2023-11-29 01:41:26 -03:00
|
|
|
./renawiki.nix
|
2024-03-27 02:28:28 -03:00
|
|
|
./email.nix
|
2023-10-26 11:27:09 -03:00
|
|
|
];
|
|
|
|
|
|
|
|
# Use more aggressive compression then the default.
|
|
|
|
virtualisation.digitalOceanImage.compressionMethod = "bzip2";
|
|
|
|
# Enable networking
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
# Set your time zone.
|
|
|
|
time.timeZone = "America/Sao_Paulo";
|
|
|
|
# Select internationalisation properties.
|
|
|
|
i18n.defaultLocale = "pt_BR.utf8";
|
|
|
|
|
2023-11-17 11:21:51 -03:00
|
|
|
boot.kernel.sysctl."fs.inotify.max_user_watches" = 1048576;
|
|
|
|
|
2023-10-26 11:27:09 -03:00
|
|
|
age = {
|
|
|
|
identityPaths = [ "/root/.ssh/id_rsa" ];
|
|
|
|
};
|
|
|
|
|
2024-02-17 21:07:55 -03:00
|
|
|
system.autoUpgrade = {
|
|
|
|
enable = true;
|
|
|
|
dates = "04:40";
|
|
|
|
allowReboot = true;
|
|
|
|
operation = "switch";
|
|
|
|
flags = [ "--update-input" "nixpkgs" "--no-write-lock-file" "-L" ];
|
|
|
|
flake = "github:lelgenio/nixos-config#ghost";
|
|
|
|
};
|
|
|
|
|
2023-10-26 11:27:09 -03:00
|
|
|
system.stateVersion = "23.05"; # Never change this
|
|
|
|
}
|
|
|
|
|