push
This commit is contained in:
1
main.nix
1
main.nix
@@ -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 []);
|
||||||
|
|||||||
@@ -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
23
modules/sshfs.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user