first draft of seafile-server module + test VM

test vm can be built using
`NIXOS_CONFIG="$(pwd)/seafile-test.nix" nixos-rebuild build-vm --show-trace`
This commit is contained in:
Trolli Schmittlauch 2019-10-09 00:55:35 +02:00
parent 2d8350f62a
commit 764edc371c
2 changed files with 147 additions and 0 deletions

31
seafile-test.nix Normal file
View file

@ -0,0 +1,31 @@
{ config, pkgs, ...}:
{
imports = [
<nixpkgs/nixos/modules/profiles/minimal.nix>
<nixpkgs/nixos/modules/profiles/qemu-guest.nix>
./mod-seafile-server.nix
];
nixpkgs.overlays = [
(import /home/spiollinux/nixconfigs/home/ov/seafile-overlay)
];
i18n.consoleKeyMap = "de";
users.mutableUsers = false;
users.users.test = {
isNormalUser = true;
extraGroups = [ "wheel" ];
#hashedPassword = "$6$SZCzE/xB$Hr9sfsJ7xAcBCoptG39cxxQk8RZfldDjjGpSngOvn9Ufex5dHBEbdncXRZnfrGATsGcYPvLi7m4wIu.f8tY9B.";
password = "";
home = "/home/test";
createHome = true;
};
# Seafile
services.seafile-server = {
enable = true;
#autorun = false;
domainName = "localhost";
};
}