Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions home/zsh/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,11 @@
# Will load the whole folder and source nsimon.plugin.zsh:
{ name = "nsimon"; src = ../dotfiles/zsh; }
];

initExtra = ''
if [[ $(uname -m) == 'arm64' ]]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
'';
};
}
42 changes: 42 additions & 0 deletions macos/components/spacebar.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{ pkgs, ... }:
{
enable = true;
package = pkgs.spacebar;
config = {
debug_output = "on";
position = "top";
display = "main";
height = 26;
title = "on";
spaces = "on";
clock = "on";
power = "on";
padding_left = 20;
padding_right = 20;
spacing_left = 25;
spacing_right = 15;
text_font = ''"Menlo:Regular:12.0"'';
icon_font = ''"Font Awesome 5 Free:Solid:12.0"'';
background_color = "0xff202020";
foreground_color = "0xffa8a8a8";
power_icon_color = "0xffcd950c";
battery_icon_color = "0xffd75f5f";
dnd_icon_color = "0xffa8a8a8";
clock_icon_color = "0xffa8a8a8";
power_icon_strip = " ";
space_icon = "•";
space_icon_strip = "1 2 3 4 5 6 7 8 9 10";
spaces_for_all_displays = "on";
display_separator = "on";
display_separator_icon = "";
space_icon_color = "0xff458588";
space_icon_color_secondary = "0xff78c4d4";
space_icon_color_tertiary = "0xfffff9b0";
clock_icon = "";
dnd_icon = "";
clock_format = ''"%d/%m/%y %R"'';
right_shell = "on";
right_shell_icon = "";
right_shell_command = "whoami";
};
}
2 changes: 1 addition & 1 deletion macos/components/yabai.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#left_padding = 10;
#right_padding = 10;
#window_gap = 10;
#external_bar = "all:0:0";
external_bar = "all:26:0";
};
extraConfig = ''
yabai -m config --space 3 layout bsp
Expand Down
10 changes: 7 additions & 3 deletions macos/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,21 @@

security.pam.enableSudoTouchIdAuth = true;

# Silence the 'last login' shell message
#home-manager.users.${username}.home.file.".hushlogin".text = "";

services.activate-system.enable = true;

services.skhd = {
enable = true;
skhdConfig = builtins.readFile ../home/dotfiles/skhdrc;
};

# Silence the 'last login' shell message
#home-manager.users.${username}.home.file.".hushlogin".text = "";

system = import ./components/system.nix { inherit pkgs; };
homebrew = import ./components/homebrew.nix { inherit pkgs; };
services.yabai = import ./components/yabai.nix { inherit pkgs; };
services.spacebar = import ./components/spacebar.nix { inherit pkgs; };

launchd.user.agents.spacebar.serviceConfig.StandardErrorPath = "/tmp/spacebar.err.log";
launchd.user.agents.spacebar.serviceConfig.StandardOutPath = "/tmp/spacebar.out.log";
}