Comment out nextcloud for now and Jimbo

This commit is contained in:
Jimbo 2024-08-27 14:52:05 -04:00
parent 827307aa1a
commit 70f1c0059e
3 changed files with 60 additions and 32 deletions

View file

@ -12,6 +12,7 @@ in
imports = [
./hardware-configuration.nix
./freecorn.nix
./jimbo.nix
"${homeManager}/nixos"
];
@ -136,21 +137,21 @@ in
};
};
# Nextcloud Proxy
"cloud.${secrets.cornDomain}" = {
enableACME = true;
addSSL = true;
locations."/" = {
proxyWebsockets = true;
extraConfig = ''
location /.well-known/carddav {
return 301 $scheme://$host/remote.php/dav;
}
location /.well-known/caldav {
return 301 $scheme://$host/remote.php/dav;
'';
};
};
# # Nextcloud Proxy
# "cloud.${secrets.cornDomain}" = {
# enableACME = true;
# addSSL = true;
# locations."/" = {
# proxyWebsockets = true;
# extraConfig = ''
# location /.well-known/carddav {
# return 301 $scheme://$host/remote.php/dav;
# }
# location /.well-known/caldav {
# return 301 $scheme://$host/remote.php/dav;
# '';
# };
# };
};
appendConfig = ''
rtmp {
@ -168,23 +169,23 @@ in
'';
};
# Nextcloud server
services.nextcloud = {
enable = true;
package = pkgs.nextcloud29;
hostName = "cloud.${secrets.cornDomain}";
datadir = "/nextcloud";
https = true;
config = {
adminuser = "freecorn";
adminpassFile = "/nextcloud/password.txt";
};
settings = {
trusted_proxies = [ "127.0.0.1" ];
trusted_domains = [ "cloud.${secrets.cornDomain}" ];
overwriteprotocol = "https";
};
};
# # Nextcloud server
# services.nextcloud = {
# enable = true;
# package = pkgs.nextcloud29;
# hostName = "cloud.${secrets.cornDomain}";
# datadir = "/nextcloud";
# https = true;
# config = {
# adminuser = "freecorn";
# adminpassFile = "/nextcloud/password.txt";
# };
# settings = {
# trusted_proxies = [ "127.0.0.1" ];
# trusted_domains = [ "cloud.${secrets.cornDomain}" ];
# overwriteprotocol = "https";
# };
# };
# Get certificates for Coturn
security.acme = {

View file

@ -10,6 +10,8 @@
"scanner"
"lp"
"plugdev"
"nginx"
"nfsShare"
];
};

25
jimbo.nix Normal file
View file

@ -0,0 +1,25 @@
{
# Define a user account. Don't forget to set a password with passwd.
users.users.jimbo = {
description = "Jimbo";
isNormalUser = true;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJPjBdQrL23pDbcsNCLMvJhcNF7+u95ZV7o1QemOmegf jimbo@JimDesktop"
];
extraGroups = [
"networkmanager"
"wheel"
"nginx"
];
};
# Define home manager programs and configs
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.jimbo = { config, pkgs, ... }: {
# Don't change this
home.stateVersion = "24.05";
};
};
}