diff --git a/CLAUDE.md b/CLAUDE.md index 1579b00..f70d69a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -12,10 +12,6 @@ This is a NixOS infrastructure repository managing multiple hosts (servers and p # Enter development shell (sets up MCP configs) nix-shell -# Test configuration before deployment (required before PRs) -./scripts/test-configuration -./scripts/test-configuration -v # with --show-trace - # Edit encrypted secrets nix-shell -p sops --run 'sops hosts//secrets.yaml' @@ -80,17 +76,6 @@ utils/pkgs// └── (other files like patches, lock files) ``` -**IMPORTANT: When modifying a custom package** (patches, version updates, etc.), always test by building the package directly, not just running `test-configuration`. The configuration test only checks that the Nix expression evaluates, but doesn't verify the package actually builds: - -```bash -# Build a custom package directly to verify it works -nix-build -E 'with import { overlays = [ (import ./utils/overlays/packages.nix) ]; config.allowUnfree = true; }; ' -``` - -## Workflow - -Run `./scripts/test-configuration ` to verify NixOS configuration changes build successfully. - ## Conventions - Nix files: two-space indentation, lower kebab-case naming diff --git a/hosts/nb/modules/sway/sway.conf b/hosts/nb/modules/sway/sway.conf index 89a190b..f0976ae 100644 --- a/hosts/nb/modules/sway/sway.conf +++ b/hosts/nb/modules/sway/sway.conf @@ -334,10 +334,6 @@ input * xkb_layout "de input * xkb_options "grp:win_space_toggle" input "MANUFACTURER1 Keyboard" xkb_model "pc101" -# notebook -set $laptop eDP-1 -# bindswitch --reload --locked lid:on output $laptop disable -# bindswitch --reload lid:off output $laptop enable # A lock command used in several places set $lock_script swaylock @@ -355,8 +351,8 @@ set $laptop_screen 'eDP-1' # Clamshell mode or lock & sleep # This is a if/else statement: [ outputs_count == 1 ] && true || false # bindswitch --locked lid:on exec '[ $(swaymsg -t get_outputs | grep name | wc -l) == 1 ] && ($sleep) || swaymsg output $laptop_screen disable' -bindswitch --locked lid:on exec 'swaymsg output $laptop_screen disable' -bindswitch --locked lid:off output $laptop_screen enable +bindswitch --reload --locked lid:on exec 'swaymsg output $laptop_screen disable' +bindswitch --reload --locked lid:off output $laptop_screen enable # disable xwayland #xwayland disable diff --git a/hosts/nb/modules/sway/waybar.conf b/hosts/nb/modules/sway/waybar.conf index ea22302..c43e39f 100644 --- a/hosts/nb/modules/sway/waybar.conf +++ b/hosts/nb/modules/sway/waybar.conf @@ -95,10 +95,10 @@ "network": { // "interface": "wlp2*", // (Optional) To force the use of this interface "format-wifi": "{essid} ({signalStrength}%)  ", - "format-ethernet": "{ipaddr}/{cidr} ", - "tooltip-format": "{ifname} via {gwaddr} ", - "format-linked": "{ifname} (No IP) ", - "format-disconnected": "Disconnected ", + "format-ethernet": "{ipaddr}/{cidr} 󰈀", + "tooltip-format": "{ifname} via {gwaddr} 󰈀", + "format-linked": "{ifname} (No IP) 󰌘", + "format-disconnected": "Disconnected 󰌙", "format-alt": "{ifname}: {ipaddr}/{cidr}" }, "memory": {