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

@ -10,8 +10,6 @@
./alexandria
];
users.users.user.extraGroups = [ "docker" ];
nix.nixPath = [ "nixos-config=${./alexandria.nix}" ];
swapDevices = [ { device = "/swapfile"; size = 8192; } ];

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;

View file

@ -40,6 +40,7 @@
set -g theme_avoid_ambiguous_glyphs yes
set -g theme_color_scheme dark
set -g theme_nerd_fonts yes
set -g theme_title_display_user yes
set -g theme_display_git_default_branch yes
set -g -x FONTCONFIG_FILE ${pkgs.fontconfig.out}/etc/fonts/fonts.conf
'';