Skip to content

Commit

Permalink
feat(modules/nixos): wireshark and tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bddvlpr committed Sep 23, 2024
1 parent 322a814 commit 2a87fd7
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 7 deletions.
1 change: 1 addition & 0 deletions modules/home/helix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ in {
netcoredbg
nil
omnisharp-roslyn
ruff
rust-analyzer
taplo
terraform-ls
Expand Down
15 changes: 12 additions & 3 deletions modules/home/waybar/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,19 @@ in {
};

clock = {
format = "<span color='${colors.base0B}'> </span>{:%I:%M%p}";
format-alt = "<span color='${colors.base0B}'> </span>{:%a, %b %e}";
format = "<span color='${colors.base0B}'> </span>{:%I:%M%p %Z}";
format-alt = "<span color='${colors.base0B}'> </span>{:%a, %b %e %Z}";
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
timezone = "Europe/Brussels";
actions = {
on-scroll-up = "tz_up";
on-scroll-down = "tz_down";
};
timezones =
[
"Europe/Brussels"
]
++ (builtins.genList (x: "Etc/GMT-${toString x}") 14)
++ (builtins.genList (x: "Etc/GMT+${toString x}") 9);
};

pulseaudio = {
Expand Down
5 changes: 4 additions & 1 deletion modules/nixos/avahi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ in {
};

config = mkIf cfg.enable {
services.avahi.enable = true;
services.avahi = {
enable = true;
nssmdns4 = true;
};
};
}
2 changes: 1 addition & 1 deletion modules/nixos/docker/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ in {
options.sysc.docker = {
enable = mkOption {
type = types.bool;
default = false;
default = true;
description = "Whether to enable Docker and Docker engine.";
};
};
Expand Down
2 changes: 1 addition & 1 deletion modules/nixos/podman/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ in {
options.sysc.podman = {
enable = mkOption {
type = types.bool;
default = true;
default = false;
description = "Whether to enable podman.";
};
};
Expand Down
8 changes: 8 additions & 0 deletions modules/nixos/wireshark/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{pkgs, ...}: {
programs.wireshark = {
enable = true;
package = pkgs.wireshark-qt;
};

environment.systemPackages = [pkgs.termshark];
}
2 changes: 1 addition & 1 deletion modules/shared/users/bddvlpr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ in {
}
(mkIf (!isDarwin) {
isNormalUser = true;
extraGroups = ["wheel" "audio" "video" "dialout" "plugdev" "networkmanager" "docker"];
extraGroups = ["wheel" "audio" "video" "dialout" "plugdev" "networkmanager" "docker" "wireshark"];
hashedPassword = "$y$j9T$loVbb4dcOYqZmhAC3NScI1$NmvBmCrmuybhIhaM25x6.X2AgFKkvk9Upfr8GyqCA.3";
})
(mkIf isDarwin {
Expand Down

0 comments on commit 2a87fd7

Please sign in to comment.