This commit is contained in:
stubbfel
2017-11-22 01:48:28 +01:00
parent 0a8ad03ae4
commit f627d4da43
3 changed files with 7 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
{
environment.systemPackages = with pkgs; [
wget curl vim nano zsh fzf tmux
wget curl vim nano zsh fzf tmux nextcloud
];
imports =

View File

@@ -1,10 +1,13 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [ nextcloud ];
services.nginx.virtualHosts."cloud.stubbe.rocks" = {
enableACME = true;
forceSSL = true;
root = /etc/per-user-pkgs/nextcloud;
root = pkgs.nextcloud;
extraConfig = ''
# Add headers to serve security related headers
# Before enabling Strict-Transport-Security headers please read into this
@@ -138,5 +141,5 @@
'';
};
services.nginx.upstreams.php-handler.servers = ["unix:/run/php-fpm/php-fpm.sock"];
# services.nginx.upstreams.php-handler.servers = ["unix:/run/php-fpm/php-fpm.sock"];
}

View File

@@ -13,6 +13,6 @@ in
defaultUserShell = pkgs.zsh;
extraUsers.sshuser = myPublicSshKeys // { isNormalUser = true; home = "/home/sshuser";};
extraUsers.nextcloud = myPublicSshKeys // { isNormalUser = true; home = "/home/nextcloud"; group = "nextcloud";};
extraGroups.nexdcloud.name = "nextcloud";
extraGroups.nexdcloud.name = "nextcloud";
};
}