nixos-seafile-overlay/seafile-test.nix

36 lines
792 B
Nix

{ config, pkgs, ...}:
{
imports = [
<nixpkgs/nixos/modules/profiles/minimal.nix>
<nixpkgs/nixos/modules/profiles/qemu-guest.nix>
./mod-seafile-server.nix
];
nixpkgs.overlays = [
(import ./default.nix)
];
console.keyMap = "de";
users.mutableUsers = false;
users.users.test = {
isNormalUser = true;
extraGroups = [ "wheel" ];
#hashedPassword = "$6$SZCzE/xB$Hr9sfsJ7xAcBCoptG39cxxQk8RZfldDjjGpSngOvn9Ufex5dHBEbdncXRZnfrGATsGcYPvLi7m4wIu.f8tY9B.";
password = "test";
home = "/home/test";
createHome = true;
};
# Seafile
services.seafile-server = {
enable = true;
#autorun = false;
domainName = "seaf.local";
db = {
type = "mysql";
passwordFile = toString (pkgs.writeText "testPW" "lol");
};
};
}