initial configs

This commit is contained in:
Jonas Heinrich 2022-12-01 17:21:10 +01:00
commit 7df11610bf
3 changed files with 31 additions and 0 deletions

2
Makefile Normal file
View file

@ -0,0 +1,2 @@
all:
QEMU_NET_OPTS="hostfwd=tcp::80-:80" NIX_PATH=nixpkgs=/home/onny/projects/nixpkgs nixos-shell vm-nextcloud.nix

5
README.md Normal file
View file

@ -0,0 +1,5 @@
To run development environment simply execute
make
on NixOS :)

24
vm-nextcloud.nix Normal file
View file

@ -0,0 +1,24 @@
{ pkgs, ... }: {
services.nextcloud = {
enable = true;
package = pkgs.nextcloud25;
hostName = "localhost";
config.adminpassFile = "${pkgs.writeText "adminpass" "hunter2"}";
extraApps = {
circles = pkgs.fetchNextcloudApp rec {
url = "https://github.com/nextcloud-releases/circles/releases/download/0.21.4/circles-0.21.4.tar.gz";
sha256 = "sha256-sQUsYC3cco6fj9pF2l1NrCEhA3KJoOvJRhXvBlVplll=";
};
calendar = pkgs.fetchNextcloudApp rec {
url = "https://github.com/nextcloud-releases/calendar/releases/download/v4.1.0/calendar-v4.1.0.tar.gz";
sha256 = "sha256-eTc51pkg3OdHJB7X4/hD39Ce+9vKzw1nlJ7BhPOzlll=";
};
};
};
documentation.info.enable = false;
documentation.man.enable = false;
documentation.nixos.enable = false;
}