Merge branch 'main' of codeberg.org:dnscio/nix-config

This commit is contained in:
Dennis Schoepf 2025-05-28 23:18:21 +02:00
commit 1d584074b0
8 changed files with 185 additions and 82 deletions

View file

@ -0,0 +1,73 @@
{
services.aerospace = {
enable = true;
settings = {
accordion-padding = 25;
gaps = {
inner.horizontal = 6;
inner.vertical = 6;
outer.left = 6;
outer.bottom = 6;
outer.top = 6;
outer.right = 6;
};
workspace-to-monitor-force-assignment = {
"1" = "main";
"2" = "main";
"3" = "main";
"4" = "main";
"5" = "secondary";
"6" = "secondary";
};
mode.main.binding = {
alt-h = "focus left";
alt-j = "focus down";
alt-k = "focus up";
alt-l = "focus right";
alt-shift-h = "move left";
alt-shift-j = "move down";
alt-shift-k = "move up";
alt-shift-l = "move right";
alt-comma = "layout tiles horizontal vertical";
alt-period = "layout accordion horizontal vertical";
alt-f = "fullscreen";
alt-1 = "workspace 1";
alt-2 = "workspace 2";
alt-3 = "workspace 3";
alt-4 = "workspace 4";
alt-5 = "workspace 5";
alt-6 = "workspace 6";
alt-shift-1 = [ "move-node-to-workspace 1" "workspace 1" ];
alt-shift-2 = [ "move-node-to-workspace 2" "workspace 2" ];
alt-shift-3 = [ "move-node-to-workspace 3" "workspace 3" ];
alt-shift-4 = [ "move-node-to-workspace 4" "workspace 4" ];
alt-shift-5 = [ "move-node-to-workspace 5" "workspace 5" ];
alt-shift-6 = [ "move-node-to-workspace 6" "workspace 6" ];
alt-tab = "workspace-back-and-forth";
alt-shift-tab = "move-workspace-to-monitor --wrap-around next";
};
on-window-detected = [
{
"if".app-id = "company.thebrowser.Browser";
run = "move-node-to-workspace 1";
}
{
"if".app-id = "com.github.wez.wezterm";
run = "move-node-to-workspace 2";
}
{
"if".app-id = "com.postmanlabs.mac";
run = "move-node-to-workspace 3";
}
{
"if".app-id = "com.apple.dt.Xcode";
run = "move-node-to-workspace 3";
}
{
"if".app-id = "com.microsoft.teams2";
run = "move-node-to-workspace 5";
}
];
};
};
}

View file

@ -2,5 +2,9 @@
programs.atuin = { programs.atuin = {
enable = true; enable = true;
enableFishIntegration = true; enableFishIntegration = true;
settings = {
style = "compact";
inline_height = 20;
};
}; };
} }

View file

@ -1,3 +1,5 @@
{ config, pkgs, ... }:
{ programs.fish = { { programs.fish = {
enable = true; enable = true;
@ -6,11 +8,9 @@
set folder (begin set folder (begin
fd . ~/dev/ride/apps/backend/edge-services -t d -d 1; fd . ~/dev/ride/apps/backend/edge-services -t d -d 1;
fd . ~/dev/ride/apps/backend/backend-services -t d -d 1; fd . ~/dev/ride/apps/backend/backend-services -t d -d 1;
fd . ~/dev/ride/apps/backend/backend-services/tariff-service -t d -d 1;
fd . ~/dev/ride/apps/backend/backend-services/wallet-service -t d -d 1;
fd . ~/dev/ride/apps/frontend/projects -t d -d 1; fd . ~/dev/ride/apps/frontend/projects -t d -d 1;
fd . ~/dev/ride/apps/native -t d -d 1; fd . ~/dev/ride/apps/native -t d -d 1;
fd . ~/dev/ride/packages -t d -d 1; # fd . ~/dev/ride/packages -t d -d 1;
echo "$HOME/dev/ride/apps/frontend"; echo "$HOME/dev/ride/apps/frontend";
echo "$HOME/dev/ride/apps/lib"; echo "$HOME/dev/ride/apps/lib";
echo "$HOME/dev/ride"; echo "$HOME/dev/ride";
@ -23,8 +23,6 @@
set folder (begin set folder (begin
fd . ~/dev/ride/apps/backend/edge-services -t d -d 1; fd . ~/dev/ride/apps/backend/edge-services -t d -d 1;
fd . ~/dev/ride/apps/backend/backend-services -t d -d 1; fd . ~/dev/ride/apps/backend/backend-services -t d -d 1;
fd . ~/dev/ride/apps/backend/backend-services/tariff-service -t d -d 1;
fd . ~/dev/ride/apps/backend/backend-services/wallet-service -t d -d 1;
fd . ~/dev/ride/apps/frontend/projects -t d -d 1; fd . ~/dev/ride/apps/frontend/projects -t d -d 1;
fd . ~/dev/ride/apps/native -t d -d 1; fd . ~/dev/ride/apps/native -t d -d 1;
echo "$HOME/dev/ride/apps/frontend"; echo "$HOME/dev/ride/apps/frontend";
@ -93,6 +91,16 @@
''; '';
localip = "ifconfig | grep \"inet \" | grep -v 127.0.0.1 | awk '{print $2}' | head -n 1"; localip = "ifconfig | grep \"inet \" | grep -v 127.0.0.1 | awk '{print $2}' | head -n 1";
publicip = "curl -4 ifconfig.me"; publicip = "curl -4 ifconfig.me";
fzf = ''
set -Ux FZF_DEFAULT_OPTS "
--color=fg:#908caa,bg:#191724,hl:#ebbcba
--color=fg+:#e0def4,bg+:#26233a,hl+:#ebbcba
--color=border:#403d52,header:#31748f,gutter:#191724
--color=spinner:#f6c177,info:#9ccfd8
--color=pointer:#c4a7e7,marker:#eb6f92,prompt:#908caa"
command fzf
'';
}; };
interactiveShellInit = '' interactiveShellInit = ''
@ -110,11 +118,13 @@
fish_add_path /opt/homebrew/bin fish_add_path /opt/homebrew/bin
fish_add_path $ANDROID_HOME/emulator fish_add_path $ANDROID_HOME/emulator
fish_add_path $ANDROID_HOME/platform-tools fish_add_path $ANDROID_HOME/platform-tools
fish_add_path $HOME/.config/fish/plugins
envsource ~/.env envsource ~/.env
zoxide init fish | source zoxide init fish | source
fnm env --use-on-cd --shell fish | source fnm env --use-on-cd --shell fish | source
rbenv init - | source
''; '';
shellAbbrs = { shellAbbrs = {

View file

@ -0,0 +1,7 @@
au BufNewFile,BufRead Appfile set ft=ruby
au BufNewFile,BufRead Deliverfile set ft=ruby
au BufNewFile,BufRead Fastfile set ft=ruby
au BufNewFile,BufRead Gymfile set ft=ruby
au BufNewFile,BufRead Matchfile set ft=ruby
au BufNewFile,BufRead Snapfile set ft=ruby
au BufNewFile,BufRead Scanfile set ft=ruby

View file

@ -6,7 +6,8 @@ local M = {}
function M.apply_to_config(config) function M.apply_to_config(config)
if hn == "dnsc-work" then if hn == "dnsc-work" then
config.window_background_opacity = 0.9 config.window_background_opacity = 0.975
config.font_size = 19
end end
if hn == "dnsc-desktop" then if hn == "dnsc-desktop" then

View file

@ -57,6 +57,7 @@
extraGroups = [ "wheel" "networkmanager" ]; extraGroups = [ "wheel" "networkmanager" ];
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILvXWZOPOJJDAoF+Sx/ZLoAVu6G/7/MAWoknBgMAzjul dennis@dnsc-mac" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILvXWZOPOJJDAoF+Sx/ZLoAVu6G/7/MAWoknBgMAzjul dennis@dnsc-mac"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKnmuxDkpDIku5t1Tykz21u78xoQ7LJR8JEcfth32LGu dennis@dnsc-work"
]; ];
}; };

View file

@ -72,6 +72,7 @@
extraGroups = [ "wheel" "networkmanager" ]; extraGroups = [ "wheel" "networkmanager" ];
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILvXWZOPOJJDAoF+Sx/ZLoAVu6G/7/MAWoknBgMAzjul dennis@dnsc-mac" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILvXWZOPOJJDAoF+Sx/ZLoAVu6G/7/MAWoknBgMAzjul dennis@dnsc-mac"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKnmuxDkpDIku5t1Tykz21u78xoQ7LJR8JEcfth32LGu dennis@dnsc-work"
]; ];
}; };

View file

@ -8,7 +8,7 @@
}: { }: {
imports = [ imports = [
inputs.home-manager.darwinModules.home-manager inputs.home-manager.darwinModules.home-manager
../../home/modules/aerospace ../../home/modules/aerospace/work.nix
]; ];
# Setting the user # Setting the user
@ -44,6 +44,7 @@
prettierd prettierd
atuin atuin
nil nil
nurl
]; ];
# Homebrew # Homebrew
@ -51,7 +52,7 @@
enable = true; enable = true;
onActivation = { onActivation = {
autoUpdate = false; autoUpdate = true;
cleanup = "zap"; cleanup = "zap";
}; };
@ -68,7 +69,7 @@
"yt-dlp" "yt-dlp"
"zoxide" "zoxide"
"sqlite" "sqlite"
"rsync" # "rsync" -> Can't install due to: https://github.com/fastlane/fastlane/discussions/27962
"fnm" "fnm"
"imagemagick" "imagemagick"
"todo-txt" "todo-txt"
@ -83,12 +84,13 @@
"librsvg" "librsvg"
"pixman" "pixman"
"python-setuptools" "python-setuptools"
"rbenv"
]; ];
casks = [ casks = [
"arc" "arc"
"microsoft-teams" "microsoft-teams"
"tailscale" # "tailscale"
"font-victor-mono" "font-victor-mono"
"font-victor-mono-nerd-font" "font-victor-mono-nerd-font"
"vlc" "vlc"
@ -102,6 +104,8 @@
"1password" "1password"
"android-studio" "android-studio"
"zulu@17" "zulu@17"
"postman"
"docker"
]; ];
}; };
@ -130,6 +134,7 @@
persistent-apps = [ persistent-apps = [
"/Applications/Arc.app" "/Applications/Arc.app"
"/Applications/WezTerm.app" "/Applications/WezTerm.app"
"/Applications/Microsoft Teams.app"
"/System/Applications/System Settings.app/" "/System/Applications/System Settings.app/"
]; ];
persistent-others = [ persistent-others = [
@ -171,6 +176,7 @@
home-manager = { home-manager = {
extraSpecialArgs = { inherit inputs outputs; }; extraSpecialArgs = { inherit inputs outputs; };
useGlobalPkgs = true; useGlobalPkgs = true;
backupFileExtension = "backup";
users = { users = {
dennis = import ../../home/darwin-work.nix; dennis = import ../../home/darwin-work.nix;
}; };