2019-10-09 00:55:35 +02:00
|
|
|
{ config, pkgs, ...}:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
<nixpkgs/nixos/modules/profiles/minimal.nix>
|
|
|
|
<nixpkgs/nixos/modules/profiles/qemu-guest.nix>
|
|
|
|
./mod-seafile-server.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
nixpkgs.overlays = [
|
2019-10-21 22:46:10 +02:00
|
|
|
(import ./default.nix)
|
2019-10-09 00:55:35 +02:00
|
|
|
];
|
|
|
|
|
2020-11-27 22:26:09 +01:00
|
|
|
console.keyMap = "de";
|
2019-10-09 00:55:35 +02:00
|
|
|
users.mutableUsers = false;
|
|
|
|
users.users.test = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [ "wheel" ];
|
|
|
|
#hashedPassword = "$6$SZCzE/xB$Hr9sfsJ7xAcBCoptG39cxxQk8RZfldDjjGpSngOvn9Ufex5dHBEbdncXRZnfrGATsGcYPvLi7m4wIu.f8tY9B.";
|
2020-11-30 02:21:10 +01:00
|
|
|
password = "test";
|
2019-10-09 00:55:35 +02:00
|
|
|
home = "/home/test";
|
|
|
|
createHome = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Seafile
|
|
|
|
services.seafile-server = {
|
|
|
|
enable = true;
|
|
|
|
#autorun = false;
|
2021-01-24 23:13:23 +01:00
|
|
|
domainName = "seaf.local";
|
2021-01-30 00:59:25 +01:00
|
|
|
db = {
|
|
|
|
type = "mysql";
|
|
|
|
passwordFile = toString (pkgs.writeText "testPW" "lol");
|
|
|
|
};
|
2019-10-09 00:55:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|