Skip to content

Commit

Permalink
refactor: Update pre-commit hook source and improve WezTerm configura…
Browse files Browse the repository at this point in the history
…tion structure
  • Loading branch information
YOUSIKI committed Nov 22, 2024
1 parent d066121 commit 1f0f90f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 20 deletions.
2 changes: 1 addition & 1 deletion checks/pre-commit-hooks/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
...
}:
inputs.pre-commit-hooks.lib.${system}.run {
src = ./.;
src = inputs.self;

hooks = {
actionlint.enable = true;
Expand Down
17 changes: 9 additions & 8 deletions modules/home/programs/graphical/wezterm/wezterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ if wezterm.config_builder then
config = wezterm.config_builder()
end

local function scheme_for_appearance(appearance)
if appearance:find("Dark") then
return "Catppuccin Mocha"
else
return "Catppuccin Frappe"
end
end
-- local function scheme_for_appearance(appearance)
-- if appearance:find("Dark") then
-- return "Catppuccin Mocha"
-- else
-- return "Catppuccin Frappe"
-- end
-- end

local appearance = wezterm.gui.get_appearance()
-- local appearance = wezterm.gui.get_appearance()

-- config.color_scheme = scheme_for_appearance(appearance)

config.color_scheme = "Catppuccin Mocha"

config.font = wezterm.font_with_fallback({
Expand Down
34 changes: 23 additions & 11 deletions systems/aarch64-darwin/nano/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,33 @@
{pkgs, ...}: {
# Set the hostname and computer name
networking.hostName = "nano";
networking.computerName = "YouSiki's Nano";
networking = {
hostName = "nano";
computerName = "YouSiki's Nano";
};

# Add ability to used TouchID for sudo authentication
security.pam.enableSudoTouchIdAuth = true;

# System configurations
system.defaults.NSGlobalDomain.ApplePressAndHoldEnabled = false;
system.defaults.NSGlobalDomain.AppleShowAllExtensions = true;
system.defaults.dock.show-recents = false;
system.defaults.dock.tilesize = 48;
system.defaults.finder.QuitMenuItem = true;
system.defaults.finder.ShowPathbar = true;
system.defaults.finder.ShowStatusBar = true;
system.defaults.trackpad.Clicking = true;
system.defaults.trackpad.TrackpadThreeFingerDrag = true;
system.defaults = {
NSGlobalDomain = {
ApplePressAndHoldEnabled = false;
AppleShowAllExtensions = true;
};
dock = {
show-recents = false;
tilesize = 48;
};
finder = {
QuitMenuItem = true;
ShowPathbar = true;
ShowStatusBar = true;
};
trackpad = {
Clicking = true;
TrackpadThreeFingerDrag = true;
};
};

environment.systemPackages = with pkgs; [
alejandra
Expand Down

0 comments on commit 1f0f90f

Please sign in to comment.