removed discord, added sshfs nfs mount

This commit is contained in:
Bryan Ramos 2026-03-14 20:05:10 -04:00
parent c008858b2e
commit 7c2cc7fd7a
2 changed files with 23 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ config, ... }:
{ config, pkgs, ... }:
{
home-manager.useGlobalPkgs = true;
@ -15,6 +15,25 @@
home.stateVersion = "23.11";
home.packages = [ pkgs.sshfs ];
systemd.user.services.nvr-mount = {
Unit = {
Description = "Mount Frigate recordings via SSHFS";
After = [ "network-online.target" ];
};
Service = {
Type = "oneshot";
RemainAfterExit = true;
ExecStartPre = "${pkgs.coreutils}/bin/mkdir -p %h/Media/nvr";
ExecStart = "${pkgs.sshfs}/bin/sshfs -o reconnect,ServerAliveInterval=15 server:/var/lib/frigate %h/Media/nvr";
ExecStop = "${pkgs.fuse}/bin/fusermount -u %h/Media/nvr";
};
Install = {
WantedBy = [ "default.target" ];
};
};
programs.ssh = {
enable = true;
enableDefaultConfig = false;

View file

@ -18,8 +18,9 @@ in
home.packages = with pkgs; [
ytmdesktop
discordo
webcord
#discordo
#webcord
discord
];
};
}