enable wireshark; add retry on systemd service;

This commit is contained in:
2025-05-14 16:09:26 +01:00
parent 340a2ab92f
commit 72cbcd5551
3 changed files with 8 additions and 4 deletions

View File

@@ -43,12 +43,15 @@
hardware.tuxedo-drivers.enable = true;
programs.nix-ld.enable = true;
programs.wireshark = {
enable = true;
};
# Define a user account. Don't forget to set a password with passwd.
users.users.worble = {
initialPassword = "password";
isNormalUser = true;
extraGroups = [ "wheel" "gamemode" "docker" "cdrom" ]; # Enable sudo for the user.
extraGroups = [ "wheel" "gamemode" "docker" "cdrom" "wireshark" ]; # Enable sudo for the user.
linger = true;
};

View File

@@ -113,6 +113,8 @@
Unit = {
Description = "rclone-media /mnt/HDD1/Videos/";
After = [ "network.target" "mnt-HDD1.mount" ];
# Maybe? https://unix.stackexchange.com/questions/281650/systemd-unit-requiresmountsfor-vs-conditionpathisdirectory
# RequiresMountsFor = "/mnt/HDD1/Videos/";
};
Install = {
@@ -120,6 +122,8 @@
};
Service = {
RestartSec = 10;
Restart = "on-failure";
Type = "exec";
ExecStart = "${pkgs.writeShellApplication {
name = "rclone-media";