From 9dbd9ebc65e3bd7dc5422ff067df920c4713c94c Mon Sep 17 00:00:00 2001 From: jwy Date: Tue, 8 Oct 2024 01:58:17 -0400 Subject: [PATCH] Fixed some code style issues (indentation, comments) --- dots/config/bspwm/sxhkdrc | 4 ++-- nix-config/home/alacritty.nix | 18 +++++++++--------- nix-config/home/neovim.nix | 8 ++++---- nix-config/system/packages.nix | 1 + nix-config/system/syncthing.nix | 3 +-- system.nix | 4 ++++ 6 files changed, 21 insertions(+), 17 deletions(-) diff --git a/dots/config/bspwm/sxhkdrc b/dots/config/bspwm/sxhkdrc index b2e08f621..893f710c7 100644 --- a/dots/config/bspwm/sxhkdrc +++ b/dots/config/bspwm/sxhkdrc @@ -175,11 +175,11 @@ super + ctrl + shift + space ##### -# expand a window +# resize: expand a window super + alt + {h,j,k,l} bspc node -z {left -10 0,bottom 0 10,top 0 -10,right 10 0} -# contract a window +# resize contract a window super + alt + shift + {h,j,k,l} bspc node -z {right -10 0,top 0 10,bottom 0 -10,left 10 0} diff --git a/nix-config/home/alacritty.nix b/nix-config/home/alacritty.nix index 914ae6856..343afb0b5 100644 --- a/nix-config/home/alacritty.nix +++ b/nix-config/home/alacritty.nix @@ -14,10 +14,10 @@ in lib.mkIf (alacritty == true) { ]; live_config_reload = true; cursor = { - style = { - shape = "Beam"; - blinking = "On"; - }; + style = { + shape = "Beam"; + blinking = "On"; + }; blink_interval = 550; unfocused_hollow = false; thickness = 0.15; @@ -29,12 +29,12 @@ in lib.mkIf (alacritty == true) { save_to_clipboard = true; }; window = { - decorations = "none"; - dynamic_title = true; + decorations = "none"; + dynamic_title = true; dynamic_padding = true; - padding.x = 5; - padding.y = 5; - opacity = 1; + padding.x = 5; + padding.y = 5; + opacity = 1; }; scrolling = { history = 10000; diff --git a/nix-config/home/neovim.nix b/nix-config/home/neovim.nix index c9d9744e6..ab3b08c26 100644 --- a/nix-config/home/neovim.nix +++ b/nix-config/home/neovim.nix @@ -132,8 +132,8 @@ in { nvim-autopairs.enable = true; persistence.enable = true; startup = { - enable = true; - theme = "dashboard"; + enable = true; + theme = "dashboard"; }; telescope = { enable = true; @@ -145,8 +145,8 @@ in { tmux-navigator.enable = true; todo-comments.enable = true; treesitter = { - enable = true; - nixGrammars = true; + enable = true; + nixGrammars = true; }; treesitter-context.enable = true; treesitter-textobjects.enable = true; diff --git a/nix-config/system/packages.nix b/nix-config/system/packages.nix index f963617ce..e85af8671 100644 --- a/nix-config/system/packages.nix +++ b/nix-config/system/packages.nix @@ -30,6 +30,7 @@ # xwayland.enable = true; # }; fuse.userAllowOther = true; + # network diagnostic tool mtr.enable = true; gnupg.agent = { enable = true; diff --git a/nix-config/system/syncthing.nix b/nix-config/system/syncthing.nix index db62bf236..ef509acac 100644 --- a/nix-config/system/syncthing.nix +++ b/nix-config/system/syncthing.nix @@ -15,6 +15,5 @@ lib.mkIf (syncthing == true) { # 22000 TCP and/or UDP for sync traffic # 21027/UDP for discovery # source: https://docs.syncthing.net/users/firewall.html - networking.firewall.allowedTCPPorts = [ 8384 22000 ]; - networking.firewall.allowedUDPPorts = [ 22000 21027 ]; + # these are opened on the firewall in system.nix } diff --git a/system.nix b/system.nix index 3e7fc8274..8e7903e8b 100644 --- a/system.nix +++ b/system.nix @@ -18,6 +18,10 @@ in { # Enable networking networking.hostName = "${hostname}"; # Define your hostname networking.networkmanager.enable = true; + #networking.firewall.allowedTCPPorts = [ 8384 22000 3000 ]; + #networking.firewall.allowedUDPPorts = [ 22000 21027 ]; + networking.firewall.enable = false; + # Set your time zone time.timeZone = "${theTimezone}";