This commit is contained in:
+17
-17
@@ -36,25 +36,25 @@ programs.bash.enable = true;
|
|||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "nano";
|
EDITOR = "nano";
|
||||||
};
|
};
|
||||||
systemd.user.services.mount-proxmox-iso = {
|
# systemd.user.services.mount-proxmox-iso = {
|
||||||
Unit = {
|
# Unit = {
|
||||||
Description = "Mount Proxmox ISO dir via SSHFS";
|
# Description = "Mount Proxmox ISO dir via SSHFS";
|
||||||
After = [ "network-online.target" ];
|
# After = [ "network-online.target" ];
|
||||||
Wants = [ "network-online.target" ];
|
# Wants = [ "network-online.target" ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
Service = {
|
# Service = {
|
||||||
Type = "simple";
|
# Type = "simple";
|
||||||
ExecStartPre = "${pkgs.coreutils}/bin/mkdir -p ${localMount}";
|
# ExecStartPre = "${pkgs.coreutils}/bin/mkdir -p ${localMount}";
|
||||||
ExecStart = "${pkgs.sshfs}/bin/sshfs -o IdentityFile=${config.home.homeDirectory}/.ssh/id_ed25519,allow_other,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 root@proxmox-ip:/var/lib/vz/template/iso ${localMount}";
|
# ExecStart = "${pkgs.sshfs}/bin/sshfs -o IdentityFile=${config.home.homeDirectory}/.ssh/id_ed25519,allow_other,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 root@proxmox-ip:/var/lib/vz/template/iso ${localMount}";
|
||||||
ExecStop = "${pkgs.fuse3}/bin/fusermount3 -u ${localMount}";
|
# ExecStop = "${pkgs.fuse3}/bin/fusermount3 -u ${localMount}";
|
||||||
Restart = "on-failure";
|
# Restart = "on-failure";
|
||||||
};
|
# };
|
||||||
|
|
||||||
Install = {
|
# Install = {
|
||||||
WantedBy = [ "default.target" ];
|
# WantedBy = [ "default.target" ];
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
# Optional: enable bash (or zsh, fish...)
|
# Optional: enable bash (or zsh, fish...)
|
||||||
# programs.bash.enable = true;
|
# programs.bash.enable = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user