nixberry: automount share on yggdrasil

This commit is contained in:
Christoph Hollizeck 2025-12-04 11:01:16 +01:00
parent f0d21f461f
commit 8d5f52de19
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
2 changed files with 21 additions and 2 deletions

View file

@ -59,8 +59,11 @@
boot.supportedFilesystems = [ "zfs" ]; boot.supportedFilesystems = [ "zfs" ];
networking.hostId = "8425e349"; networking.hostId = "8425e349";
services.zfs.autoScrub.enable = true; services.zfs = {
services.zfs.trim.enable = true; autoScrub.enable = true;
autoSnapshot.enable = true;
trim.enable = true;
};
disko.devices = { disko.devices = {
disk = { disk = {

View file

@ -63,6 +63,22 @@ topLevel: {
root root
]; ];
fileSystems."/mnt/pi_share" = {
device = "cholli@nixberry:/storage/";
fsType = "sshfs";
options = [
# Filesystem options
"allow_other" # for non-root access
"_netdev" # this is a network fs
"x-systemd.automount" # mount on demand
# SSH options
"reconnect" # handle connection drops
"ServerAliveInterval=15" # keep connections alive
];
};
nix = { nix = {
distributedBuilds = true; distributedBuilds = true;
settings.builders-use-substitutes = true; settings.builders-use-substitutes = true;