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

@@ -14,8 +14,5 @@
}; };
programs.gamemode.enable = true; programs.gamemode.enable = true;
programs.gamescope.enable = true; programs.gamescope.enable = true;
# ensure users who need access to this have `cdrom` as `extraGroups`
# Wait for https://github.com/NixOS/nixpkgs/pull/397358 to be in stable to reenable
programs.cdemu.enable = true; programs.cdemu.enable = true;
} }

View File

@@ -43,12 +43,15 @@
hardware.tuxedo-drivers.enable = true; hardware.tuxedo-drivers.enable = true;
programs.nix-ld.enable = true; programs.nix-ld.enable = true;
programs.wireshark = {
enable = true;
};
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users.users.worble = { users.users.worble = {
initialPassword = "password"; initialPassword = "password";
isNormalUser = true; 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; linger = true;
}; };

View File

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