mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-25 21:30:52 +01:00
Updated filerun and fixed permissions
This commit is contained in:
parent
171ee59ab4
commit
0279b0b986
2 changed files with 16 additions and 6 deletions
|
@ -58,19 +58,29 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
users.users.filerun = {
|
||||
isSystemUser = true;
|
||||
uid = 250;
|
||||
};
|
||||
users.groups.filerun = {
|
||||
gid = 350;
|
||||
};
|
||||
users.users.filerun.group = config.users.groups.filerun.name;
|
||||
|
||||
virtualisation.oci-containers.containers."filerun" = {
|
||||
image = "afian/filerun:libreoffice";
|
||||
image = "filerun/filerun";
|
||||
environment = {
|
||||
"FR_DB_HOST" = "filerun-mariadb";
|
||||
"FR_DB_PORT" = "3306";
|
||||
"FR_DB_NAME" = "filerundb";
|
||||
"FR_DB_USER" = "filerun";
|
||||
"APACHE_RUN_USER" = "filerunuser";
|
||||
"APACHE_RUN_USER_ID" = "1000";
|
||||
"APACHE_RUN_GROUP" = "hello";
|
||||
"APACHE_RUN_GROUP_ID" = "100";
|
||||
"APACHE_RUN_USER" = config.users.users.filerun.name;
|
||||
"APACHE_RUN_USER_ID" = "250";
|
||||
"APACHE_RUN_GROUP" = config.users.groups.filerun.name;
|
||||
"APACHE_RUN_GROUP_ID" = "350";
|
||||
};
|
||||
environmentFiles = [
|
||||
/run/secrets/filerun
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
users.users.julien = {
|
||||
isNormalUser = true;
|
||||
home = "/home/julien";
|
||||
extraGroups = [ "wheel" config.users.groups.keys.name ];
|
||||
extraGroups = [ "wheel" config.users.groups.keys.name config.users.groups.filerun.name ];
|
||||
shell = pkgs.fish;
|
||||
passwordFile = config.sops.secrets.user-julien-password.path;
|
||||
openssh.authorizedKeys.keyFiles = [
|
||||
|
|
Loading…
Add table
Reference in a new issue