nixberry: automount share on yggdrasil
This commit is contained in:
parent
f0d21f461f
commit
8d5f52de19
2 changed files with 21 additions and 2 deletions
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue