mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat: meiling
This commit is contained in:
parent
dd30009b7e
commit
47ca22ff47
30 changed files with 431 additions and 70 deletions
14
systems/meiling/setup.sh
Normal file
14
systems/meiling/setup.sh
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
mkshared-nix() {
|
||||
mkshared nix 0 0 0755
|
||||
if [[ ! -d /rpool/shared/nix/store ]]; then
|
||||
zfs create -o compression=zstd rpool/shared/nix/store
|
||||
fi
|
||||
if [[ ! -d /rpool/shared/nix/var ]]; then
|
||||
mkdir /rpool/shared/nix/var
|
||||
fi
|
||||
chown 100000:30000 /rpool/shared/nix/store
|
||||
chmod 1775 /rpool/shared/nix/store
|
||||
chown 100000:100000 /rpool/shared/nix/var
|
||||
}
|
||||
|
||||
#mkshared-nix
|
||||
Loading…
Add table
Add a link
Reference in a new issue