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

View file

@ -10,6 +10,8 @@
"scanner" "scanner"
"lp" "lp"
"plugdev" "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";
};
};
}