shiori startup script
This commit is contained in:
parent
60829f8868
commit
a4cb0d9f28
5 changed files with 15 additions and 3 deletions
|
|
@ -10,8 +10,6 @@
|
|||
./alexandria
|
||||
];
|
||||
|
||||
users.users.user.extraGroups = [ "docker" ];
|
||||
|
||||
nix.nixPath = [ "nixos-config=${./alexandria.nix}" ];
|
||||
|
||||
swapDevices = [ { device = "/swapfile"; size = 8192; } ];
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
./hardware-configuration.nix
|
||||
./hosted-services.nix
|
||||
./security.nix
|
||||
./system.nix
|
||||
./users.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
9
hosts/servers/alexandria/system.nix
Normal file
9
hosts/servers/alexandria/system.nix
Normal 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/
|
||||
'';
|
||||
}
|
||||
|
|
@ -2,7 +2,10 @@
|
|||
|
||||
{
|
||||
users = {
|
||||
users.nginx.extraGroups = [ "acme" ];
|
||||
users = {
|
||||
nginx.extraGroups = [ "acme" ];
|
||||
user.extraGroups = [ "docker" ];
|
||||
};
|
||||
groups = {
|
||||
hosted = {
|
||||
gid = 1005;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue