2023-10-04 11:11:30 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
2024-02-02 10:51:31 +01:00
|
|
|
# host = "rstudio.dgnum.eu";
|
2023-10-04 11:11:30 +02:00
|
|
|
port = 19000;
|
2024-02-02 10:51:31 +01:00
|
|
|
in
|
|
|
|
{
|
2023-10-04 11:11:30 +02:00
|
|
|
services.rstudio-server = {
|
|
|
|
enable = true;
|
|
|
|
rserverExtraConfig = ''
|
|
|
|
www-port = ${builtins.toString port}
|
|
|
|
'';
|
|
|
|
|
|
|
|
package = pkgs.rstudioServerWrapper.override {
|
2024-02-02 10:51:31 +01:00
|
|
|
packages = with pkgs.rPackages; [
|
|
|
|
ggplot2
|
|
|
|
rmarkdown
|
|
|
|
dplyr
|
|
|
|
];
|
2023-10-04 11:11:30 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
users.users.ruser = {
|
|
|
|
isNormalUser = true;
|
2024-02-02 10:51:31 +01:00
|
|
|
hashedPassword = "$6$pTXXVh8NfE.M8VPc$q0fFh3Y7Y0DauLCcZLgJzFciq1wkjoHmO61XpOrZLH3a1M32ZzOMbjx2XMm2QxrUncbx6hGerY/lD8rQ8InS4.";
|
2023-10-04 11:11:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
dgn-access-control.users.ruser = [ "jemagius" ];
|
|
|
|
|
|
|
|
# services.nginx.virtualHosts.${host} = {
|
|
|
|
# enableACME = true;
|
|
|
|
# forceSSL = true;
|
|
|
|
#
|
|
|
|
# locations."/" = {
|
|
|
|
# proxyPass = "http://localhost:${builtins.toString port}";
|
|
|
|
# proxyWebsockets = true;
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
}
|