Compare commits

...

12 Commits

Author SHA1 Message Date
Illia Chub 1d75901d0e Merge branch 'preproduction' into development 2021-10-12 16:43:41 +03:00
Illia Chub be374b5963 Fixed initial DNS resolution issues 2021-10-12 16:43:06 +03:00
Illia Chub dc20c8416b Updated REST API. Updated Nextcloud 2021-10-12 16:41:36 +03:00
Illia Chub ff75867555 Fixed issue with Desktop clients being not able to connect to the Nextcloud instance 2021-10-06 12:06:42 +03:00
Illia Chub 40f5a19dbb Update 'nixos-infect' 2021-10-05 09:57:58 +03:00
Illia Chub 14b9c92555 Temporarily deprecated alps webmail 2021-10-05 09:53:27 +03:00
Illia Chub 66b8fd903d Fixed initial DNS resolution. Fixed Cisco AnyConnect connection issue 2021-09-29 16:10:14 +03:00
Illia Chub 008baea886 Updated REST API 2021-09-14 17:36:17 +03:00
Illia Chub 1740279675 Updated repository description 2021-08-30 07:48:13 +03:00
Illia Chub 8a55f2c1ed Updated REST API 2021-08-26 12:43:33 +03:00
Illia Chub f0383ee4b9 Updated REST API 2021-08-25 09:40:36 +03:00
Illia Chub dbb590aab4 Updated REST API version 2021-08-20 18:02:30 +03:00
3 changed files with 11 additions and 6 deletions

0
LICENSE Normal file → Executable file
View File

1
README.md Normal file → Executable file
View File

@ -5,7 +5,6 @@ This script - is a modded version of original [nixos-infect](https://github.com/
This script has been tested and can install NixOS from the following source distros:
On Digital Ocean:
- Fedora 33 x64
- Ubuntu 20.04 x64
On Hetzner cloud:

16
nixos-infect Normal file → Executable file
View File

@ -48,7 +48,6 @@ makeConf() {
./vpn/ocserv.nix
./api/api.nix
./api/api-module.nix
#./social/pleroma-module.nix
./social/pleroma.nix
./letsencrypt/acme.nix
./letsencrypt/resolve.nix
@ -488,11 +487,11 @@ EOF
{
services.nextcloud = {
enable = true;
package = pkgs.nextcloud21;
package = pkgs.nextcloud22;
hostName = "cloud.$DOMAIN";
# Use HTTPS for links
https = false;
https = true;
# Auto-update Nextcloud Apps
autoUpdateApps.enable = true;
@ -671,7 +670,7 @@ let
version = "1.0";
src = builtins.fetchGit {
url = "https://git.selfprivacy.org/ilchub/selfprivacy-rest-api.git";
rev = "0980039a67c32a128a96ac73c98fc87aad64674b";
rev = "568add06c6d622d417582ce55e3cc960686721ed";
};
propagatedBuildInputs = [ flask flask-restful pandas ];
meta = {
@ -776,6 +775,9 @@ dns = 1.1.1.1
dns = 1.0.0.1
route = default
cisco-client-compat = true
'';
};
}
@ -1338,6 +1340,10 @@ infect() {
apt update
apt install -y git whois
cat > /etc/resolv.conf << EOF
nameserver 1.1.1.1
nameserver 1.0.0.1
EOF
prepareEnv
makeSwap # smallest (512MB) droplet needs extra memory!
checkEnv
@ -1347,4 +1353,4 @@ removeSwap
if [[ -z "$NO_REBOOT" ]]; then
reboot
fi
fi