From 26c4bb6495883800587d39a43f06e4b0e4d82319 Mon Sep 17 00:00:00 2001 From: tomoron Date: Fri, 14 Nov 2025 11:57:39 +0100 Subject: [PATCH] laptop turn off screen when closed, set yazi as default file browser --- homeConfigs/global/fileManager.nix | 2 + homeConfigs/hosts/laptop.nix | 78 ++---------------------------- homeConfigs/packages.nix | 3 +- osConfigs/hosts/laptop.nix | 16 +++++- 4 files changed, 23 insertions(+), 76 deletions(-) diff --git a/homeConfigs/global/fileManager.nix b/homeConfigs/global/fileManager.nix index 3658162..07b3081 100644 --- a/homeConfigs/global/fileManager.nix +++ b/homeConfigs/global/fileManager.nix @@ -4,6 +4,8 @@ enable = true; settings.mgr.sort_dir_first=false; }; + + home.sessionVariables.BROWSER = "yazi"; programs.bash.bashrcExtra = '' function y() { local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd diff --git a/homeConfigs/hosts/laptop.nix b/homeConfigs/hosts/laptop.nix index 1a753d2..420cd15 100644 --- a/homeConfigs/hosts/laptop.nix +++ b/homeConfigs/hosts/laptop.nix @@ -27,6 +27,11 @@ ", XF86Launch1, exec, hyprlock" ", XF86Launch4, exec, pkill activate-linux" ]; + bindl = [ + ",switch:off:Lid Switch,exec,hyprctl keyword monitor \"eDP-1, 1920x1080@120, 0x0, 1\"" + ",switch:on:Lid Switch,exec,hyprctl keyword monitor \"eDP-1, disable\"" + + ]; monitor= [ # "eDP-1, modeline 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync, 0x0, 1" "eDP-1, 1920x1080@120, 0x0, 1" @@ -41,77 +46,4 @@ localsend ]; -# programs.superfile = { -# enable = true; -# hotkeys = { -# # global -# confirm = ["enter" ""]; -# quit = ["ctrl+c" ""]; -# -# # movement -# list_up = ["k" ""]; -# list_down = ["j" ""]; -# page_up = ["pgup"""]; -# page_down = ["pgdown"""]; -# -# # file panel control -# create_new_file_panel = ["n" ""]; -# close_file_panel = ["q" ""]; -# next_file_panel = ["tab" ""]; -# previous_file_panel = ["shift+tab" ""]; -# toggle_file_preview_panel = ["f" ""]; -# open_sort_options_menu = ["o" ""]; -# toggle_reverse_sort = ["R" ""]; -# -# # change focus -# focus_on_process_bar = ["ctrl+p" ""]; -# focus_on_sidebar = ["ctrl+s" ""]; -# focus_on_metadata = ["ctrl+d" ""]; -# -# # create file/directory and rename -# file_panel_item_create = ["a" ""]; -# file_panel_item_rename = ["r" ""]; -# -# # file operations -# copy_items = ["y" ""]; -# cut_items = ["x" ""]; -# paste_items = ["p" ""]; -# delete_items = ["d" ""]; -# -# # compress and extract -# extract_file = ["ctrl+e" ""]; -# compress_file = ["ctrl+a" ""]; -# -# # editor -# open_file_with_editor = ["e" ""]; -# open_current_directory_with_editor = ["E" ""]; -# -# # other -# pinned_directory = ["P" ""]; -# toggle_dot_file = ["." ""]; -# change_panel_mode = ["m" ""]; -# open_help_menu = ["?" ""]; -# open_command_line = [":" ""]; -# copy_path = ["Y" ""]; -# copy_present_working_directory = ["c" ""]; -# toggle_footer = ["ctrl+f" ""]; -# -# # Typing hotkeys (can conflict with all hotkeys) -# confirm_typing = ["enter" ""]; -# cancel_typing = ["esc" ""]; -# -# # ================================================================================================= -# # Normal mode hotkeys (can conflict with other modes cannot conflict with global hotkeys) -# parent_directory = ["-" ""]; -# search_bar = ["/" ""]; -# -# # ================================================================================================= -# # Select mode hotkeys (can conflict with other modes cannot conflict with global hotkeys) -# file_panel_select_mode_items_select_down = ["J" ""]; -# file_panel_select_mode_items_select_up = ["K" ""]; -# file_panel_select_all_items = ["A" ""]; -# -# }; -# }; - } diff --git a/homeConfigs/packages.nix b/homeConfigs/packages.nix index 7bb6c29..31ad41b 100644 --- a/homeConfigs/packages.nix +++ b/homeConfigs/packages.nix @@ -6,7 +6,7 @@ # By: tomoron +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2025/02/09 22:01:56 by tomoron #+# #+# # -# Updated: 2025/11/04 16:48:12 by tomoron ### ########.fr # +# Updated: 2025/11/17 11:55:17 by tomoron ### ########.fr # # # # **************************************************************************** # @@ -46,5 +46,6 @@ yubikey-personalization sops libreoffice + doxygen ]; } diff --git a/osConfigs/hosts/laptop.nix b/osConfigs/hosts/laptop.nix index 12837ad..63ca8b2 100644 --- a/osConfigs/hosts/laptop.nix +++ b/osConfigs/hosts/laptop.nix @@ -6,7 +6,7 @@ # By: tomoron +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2025/09/06 00:56:57 by tomoron #+# #+# # -# Updated: 2025/10/29 21:15:44 by tomoron ### ########.fr # +# Updated: 2025/11/14 11:58:00 by tomoron ### ########.fr # # # # **************************************************************************** # @@ -65,13 +65,14 @@ SUBSYSTEM=="kvmfr", OWNER="tom", GROUP="kvm", MODE="0660" ''; environment.systemPackages = with pkgs; [ looking-glass-client ]; - services.supergfxd.settings.mode = "Vfio"; }; networking.dhcpcd.enable = false; systemd.network.enable = true; networking.useNetworkd = true; + programs.noisetorch.enable = true; + hardware.bluetooth.enable = true; environment.systemPackages = with pkgs; [ @@ -135,4 +136,15 @@ # }; services.flatpak.enable = true; + + + services.dnsmasq.enable = true; + services.dnsmasq.settings = { + "dhcp-range" = ["192.168.1.150,192.168.1.250"]; + "dhcp-option" = [ + "3,192.168.1.254" + "6,1.1.1.1,8.8.8.8,8.8.4.4" + ]; + "interface" = "enp4s0f4u1"; + }; }