Skip to content

Commit 2a22c42

Browse files
committed
server: Add a cache folder
Since Jellyfin filled /var/cache/Jellyfin/images nextcloud failed to login. /var/cache is limited to 30GiB of size
1 parent a7e958b commit 2a22c42

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Install
2+
3+
## Server
4+
5+
Limit the size of /tmp and /var/cache via
6+
7+
'''
8+
btrfs qgroup limit 30G /btrfs/tmp
9+
btrfs qgroup limit 30G /btrfs/cache
10+
'''

server/disko.nix

+6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ in
2929
type = "btrfs";
3030
extraArgs = [ "-f" ];
3131
subvolumes = {
32+
"/" = {
33+
mountpoint = "/btrfs";
34+
};
3235
"/nix" = {
3336
mountpoint = "/nix";
3437
mountOptions = [
@@ -39,6 +42,9 @@ in
3942
"/tmp" = {
4043
mountpoint = "/tmp";
4144
};
45+
"/cache" = {
46+
mountpoint = "/var/cache";
47+
};
4248
"/permament" = {
4349
mountpoint = "/permament";
4450
mountOptions = [

0 commit comments

Comments
 (0)