This commit is contained in:
Daniel Flanagan 2023-07-28 00:56:43 -05:00
parent 882f3bf954
commit 6a75c9d7aa
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
4 changed files with 39 additions and 20 deletions

View file

@ -8,7 +8,7 @@ if wezterm.config_builder then
end end
local hostname = io.popen("/bin/hostname"):read("*a"):gsub("%s", "") local hostname = io.popen("/bin/hostname"):read("*a"):gsub("%s", "")
local font_spec = { family = 'IosevkaLyteTerm', weight = 'Regular', italic = false } local font_spec = { family = 'IosevkaLyteTerm', weight = 'Medium', italic = false }
local font_size = 12.0 local font_size = 12.0
if hostname == "laptop" then if hostname == "laptop" then
@ -39,7 +39,7 @@ config.font_size = font_size
config.hide_tab_bar_if_only_one_tab = true config.hide_tab_bar_if_only_one_tab = true
config.use_fancy_tab_bar = false config.use_fancy_tab_bar = false
config.tab_bar_at_bottom = true config.tab_bar_at_bottom = false
config.window_background_opacity = 1.0 config.window_background_opacity = 1.0
config.color_scheme = "Catppuccin Mocha" config.color_scheme = "Catppuccin Mocha"
@ -53,11 +53,11 @@ config.inactive_pane_hsb = {
} }
config.keys = { config.keys = {
-- { {
-- key = 'j', key = 'j',
-- mods = 'CTRL', mods = 'CTRL',
-- action = wezterm.action.ActivatePaneDirection'Down' action = wezterm.action.ActivatePaneDirection'Down'
-- }, },
{ {
key = 'Insert', key = 'Insert',
mods = 'SHIFT', mods = 'SHIFT',
@ -83,16 +83,16 @@ config.keys = {
mods = 'CTRL', mods = 'CTRL',
action = wezterm.action.ActivatePaneDirection'Up' action = wezterm.action.ActivatePaneDirection'Up'
}, },
-- { {
-- key = 'j', key = 'j',
-- mods = 'CTRL|SHIFT', mods = 'CTRL|SHIFT',
-- action = wezterm.action.SplitVertical{domain='CurrentPaneDomain'} action = wezterm.action.SplitVertical{domain='CurrentPaneDomain'}
-- }, },
-- { {
-- key = 'l', key = 'l',
-- mods = 'CTRL|SHIFT', mods = 'CTRL|SHIFT',
-- action = wezterm.action.SplitHorizontal{domain='CurrentPaneDomain'} action = wezterm.action.SplitHorizontal{domain='CurrentPaneDomain'}
-- }, },
{ {
key = 'l', key = 'l',
mods = 'CTRL|SHIFT|ALT', mods = 'CTRL|SHIFT|ALT',
@ -105,7 +105,15 @@ config.keys = {
}, },
} }
-- config.default_gui_startup_args = { 'connect', 'unix' } config.unix_domains = {
{
name = 'unix',
local_echo_threshold_ms = 10,
},
}
config.default_gui_startup_args = { 'connect', 'unix' }
config.default_domain = 'unix'
config.window_padding = { config.window_padding = {
top = '0.5cell', top = '0.5cell',

View file

@ -28,10 +28,12 @@
nixosConfigurations = { nixosConfigurations = {
beefcake = inputs.nixpkgs.lib.nixosSystem { beefcake = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [ modules = [
./machines/beefcake.nix ./machines/beefcake.nix
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
inputs."api.lyte.dev".nixosModules."api.lyte.dev
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
} }

View file

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running 'nixos-help'). # and in the NixOS manual (accessible by running 'nixos-help').
{ pkgs, ... }: { { pkgs, inputs, ... }: {
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
imports = [ imports = [
# <sops-nix/modules/sops> # <sops-nix/modules/sops>
@ -201,6 +201,11 @@
}; };
}; };
services."api.lyte.dev" = {
enable = true;
port = 5757;
};
services.smartd.enable = true; services.smartd.enable = true;
services.caddy = { services.caddy = {
enable = true; enable = true;
@ -215,6 +220,10 @@
reverse_proxy :8222 reverse_proxy :8222
} }
api.lyte.dev {
reverse_proxy :5757
}
a.lyte.dev { a.lyte.dev {
reverse_proxy :8899 reverse_proxy :8899
} }

View file

@ -164,7 +164,7 @@ bar {
swaybar_command waybar swaybar_command waybar
} }
set $tilers "(kitty.*|firefox.*|slack.*|Slack.*|thunar.*|Alacritty.*|alacritty.*|Discord.*|discord.*)" set $tilers "(wezterm.*|kitty.*|firefox.*|slack.*|Slack.*|thunar.*|Alacritty.*|alacritty.*|Discord.*|discord.*)"
for_window [title=".*"] floating enable for_window [title=".*"] floating enable
for_window [app_id=$tilers] floating disable for_window [app_id=$tilers] floating disable
bindsym $mod+shift+alt+f for_window [class=$tilers] floating toggle bindsym $mod+shift+alt+f for_window [class=$tilers] floating toggle