mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-28 17:55:06 +00:00
Nix modules: change docspell user to be a normal user
Seems that unoconv requires a shell.
This commit is contained in:
parent
0d650616e3
commit
de3e07a77c
10
nix/buildvm.sh
Executable file
10
nix/buildvm.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ "$1" = "-f" ]; then
|
||||
echo "Deleting current state image..."
|
||||
rm *.qcow2
|
||||
fi
|
||||
|
||||
nixos-rebuild build-vm \
|
||||
-I nixos-config=./configuration-test.nix \
|
||||
-I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.09.tar.gz
|
@ -28,9 +28,11 @@ in
|
||||
|
||||
services.docspell-joex = {
|
||||
enable = true;
|
||||
base-url = "http://docspelltest:7878";
|
||||
bind.address = "0.0.0.0";
|
||||
base-url = "http://localhost:7878";
|
||||
};
|
||||
services.docspell-restserver = {
|
||||
bind.address = "0.0.0.0";
|
||||
enable = true;
|
||||
};
|
||||
services.docspell-consumedir = {
|
||||
|
@ -600,7 +600,9 @@ in {
|
||||
|
||||
users.users."${user}" = mkIf (cfg.runAs == null) {
|
||||
name = user;
|
||||
isSystemUser = true;
|
||||
isSystemUser = false;
|
||||
createHome = true;
|
||||
home = "/var/docspell";
|
||||
description = "Docspell user";
|
||||
};
|
||||
|
||||
@ -613,7 +615,6 @@ in {
|
||||
description = "Unoconv Listener";
|
||||
after = [ "networking.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ pkgs.unoconv ];
|
||||
serviceConfig = {
|
||||
Restart = "always";
|
||||
};
|
||||
|
@ -246,7 +246,9 @@ in {
|
||||
|
||||
users.users."${user}" = mkIf (cfg.runAs == null) {
|
||||
name = user;
|
||||
isSystemUser = true;
|
||||
isSystemUser = false;
|
||||
createHome = true;
|
||||
home = "/var/docspell";
|
||||
description = "Docspell user";
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user