This commit is contained in:
4DBug
2026-02-05 11:32:19 -06:00
parent 28a211bda4
commit 29d23ba80b
3 changed files with 24 additions and 2 deletions

View File

@@ -26,6 +26,7 @@
./modules/home-manager.nix ./modules/home-manager.nix
./modules/swap.nix ./modules/swap.nix
./modules/virtualisation.nix ./modules/virtualisation.nix
./modules/sshfs.nix
]) ++ (if device == "laptop" then [ ]) ++ (if device == "laptop" then [
./modules/mpd.nix ./modules/mpd.nix
] else []); ] else []);

View File

@@ -206,8 +206,6 @@ in
}) })
] else [ ] else [
bambu-studio bambu-studio
inputs.nix-citizen.packages.${system}.rsi-launcher
]); ]);
services = { services = {

23
modules/sshfs.nix Normal file
View File

@@ -0,0 +1,23 @@
{ config, pkgs, ... }:
{
boot.supportedFilesystems = [ "fuse.sshfs" ];
environment.systemPackages = [ pkgs.sshfs ];
systemd.tmpfiles.rules = [
"d /mnt/box 0755 root root -"
];
fileSystems."/mnt/box" = {
device = "bug@box.bug.tools:/";
fsType = "fuse.sshfs";
options = [
"identityfile=/home/youruser/.ssh/id_ed25519"
"allow_other"
"x-systemd.automount"
"noauto"
"reconnect"
"ServerAliveInterval=15"
];
};
}