From 67fe4216f246d2540b68c08ae0d86524c1018179 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Mon, 9 Sep 2024 10:05:23 -0500 Subject: [PATCH 1/4] Add iftop to router --- nixos/router.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/router.nix b/nixos/router.nix index fdd730e..e5cba00 100644 --- a/nixos/router.nix +++ b/nixos/router.nix @@ -96,6 +96,10 @@ in { } ]; + environment.systemPackages = with pkgs; [ + iftop + ]; + boot.kernel.sysctl = sysctl-entries // { From 6ddc70bcaa1f82bc5d5fe688b70ffcf611fd3054 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Mon, 9 Sep 2024 10:05:45 -0500 Subject: [PATCH 2/4] Trouble --- modules/nixos/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index b8f235d..2850e07 100644 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -400,6 +400,7 @@ troubleshooting-tools = {pkgs, ...}: { environment.systemPackages = with pkgs; [ + iftop bottom btop dnsutils From 25abed953f93c912382d39c399dfa6586544fb61 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Mon, 9 Sep 2024 10:08:38 -0500 Subject: [PATCH 3/4] Add todo script --- modules/home-manager/scripts/common/bin/t | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 modules/home-manager/scripts/common/bin/t diff --git a/modules/home-manager/scripts/common/bin/t b/modules/home-manager/scripts/common/bin/t new file mode 100755 index 0000000..e4fe30f --- /dev/null +++ b/modules/home-manager/scripts/common/bin/t @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +N todo From 26f2784f0f3f87789850df1a1eaf1345eed0c45a Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Mon, 9 Sep 2024 10:16:11 -0500 Subject: [PATCH 4/4] Force umask when creating notes --- modules/home-manager/scripts/common/bin/nf | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/home-manager/scripts/common/bin/nf b/modules/home-manager/scripts/common/bin/nf index 9eaef3f..bd14ef3 100755 --- a/modules/home-manager/scripts/common/bin/nf +++ b/modules/home-manager/scripts/common/bin/nf @@ -1,5 +1,6 @@ #!/usr/bin/env sh +umask 0077 SUBDIR="${2:-./}" mkdir -p "$NOTES_PATH/$SUBDIR" cd "$NOTES_PATH/$SUBDIR" || exit 1