add nextcloud
This commit is contained in:
parent
860a267f68
commit
c4407c2361
5 changed files with 16 additions and 3 deletions
|
@ -63,8 +63,8 @@
|
||||||
EDITOR = "vim";
|
EDITOR = "vim";
|
||||||
|
|
||||||
# bitwarden key
|
# bitwarden key
|
||||||
YUBICO_CLIENT_ID = "${../nix-secrets/willem/vaultwarden/yubico-id}";
|
YUBICO_CLIENT_ID = "${../nix-secrets/dafoe/vaultwarden/yubico-id}";
|
||||||
YUBICO_SECRET_KEY = "${../nix-secrets/willem/vaultwarden/yubico-secret}";
|
YUBICO_SECRET_KEY = "${../nix-secrets/dafoe/vaultwarden/yubico-secret}";
|
||||||
};
|
};
|
||||||
environment.shells = [ pkgs.zsh ];
|
environment.shells = [ pkgs.zsh ];
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,13 @@
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/nix" =
|
||||||
|
{ device = "/dev/disk/by-label/nix";
|
||||||
|
fsType = "ext4";
|
||||||
|
neededForBoot = true;
|
||||||
|
options = [ "noatime" ];
|
||||||
|
};
|
||||||
|
|
||||||
swapDevices =
|
swapDevices =
|
||||||
[ { device = "/dev/disk/by-uuid/d8d1edd9-e549-4d92-94d5-8ac5af126a5b"; }
|
[ { device = "/dev/disk/by-uuid/d8d1edd9-e549-4d92-94d5-8ac5af126a5b"; }
|
||||||
];
|
];
|
||||||
|
|
|
@ -9,5 +9,6 @@
|
||||||
./restic.nix
|
./restic.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./vaultwarden.nix
|
./vaultwarden.nix
|
||||||
|
./nextcloud.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,15 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nextcloud29
|
package = pkgs.nextcloud29;
|
||||||
hostName = "cloud.vatthauer.xyz";
|
hostName = "cloud.vatthauer.xyz";
|
||||||
https = true;
|
https = true;
|
||||||
|
config.adminuser = "admin";
|
||||||
config.adminpassFile = "${../../nix-secrets/dafoe/nextcloud/adminpass}";
|
config.adminpassFile = "${../../nix-secrets/dafoe/nextcloud/adminpass}";
|
||||||
configureRedis = true;
|
configureRedis = true;
|
||||||
maxUploadSize = "1G";
|
maxUploadSize = "1G";
|
||||||
|
#nginx.enable = true;
|
||||||
|
settings.overwriteProtocol = "https";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,6 +48,7 @@
|
||||||
services.nginx.virtualHosts."cloud.vatthauer.xyz" = {
|
services.nginx.virtualHosts."cloud.vatthauer.xyz" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
#locations."/".proxyPass = "http://localhost:8080";
|
||||||
# nextcloud does location setup itself
|
# nextcloud does location setup itself
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue