shiori startup script

This commit is contained in:
baduhai 2022-12-24 09:54:08 -03:00
parent 60829f8868
commit a4cb0d9f28
5 changed files with 15 additions and 3 deletions

View file

@ -5,6 +5,7 @@
./hardware-configuration.nix
./hosted-services.nix
./security.nix
./system.nix
./users.nix
];
}

View file

@ -0,0 +1,9 @@
{ inputs, config, pkgs, libs, ... }:
{
system.activationScripts.shiori.text = ''
mkdir -p /data/shiori
chown shiori:hosted /data/shiori
ln -sfn /var/lib/shiori/* /data/shiori/
'';
}

View file

@ -2,7 +2,10 @@
{
users = {
users.nginx.extraGroups = [ "acme" ];
users = {
nginx.extraGroups = [ "acme" ];
user.extraGroups = [ "docker" ];
};
groups = {
hosted = {
gid = 1005;