modularizes dnsc-work config

This commit is contained in:
Dennis Schoepf 2025-12-06 15:25:38 +01:00
parent 8a5766ddc4
commit c01472797b
2 changed files with 8 additions and 121 deletions

View file

@ -68,4 +68,6 @@
dennis = import ../../home/darwin.nix; dennis = import ../../home/darwin.nix;
}; };
}; };
nix.enable = false;
} }

View file

@ -7,68 +7,28 @@
{ {
imports = [ imports = [
inputs.home-manager.darwinModules.home-manager inputs.home-manager.darwinModules.home-manager
../../modules/aerospace outputs.nixosModules.base
outputs.nixosModules.macos
outputs.nixosModules.homebrew
outputs.nixosModules.aerospace
]; ];
# Setting the user # Device & user-specific settings
networking.hostName = "dnsc-work"; networking.hostName = "dnsc-work";
networking.computerName = "dnsc-work"; networking.computerName = "dnsc-work";
users.users."dennis" = { users.users."dennis" = {
home = "/Users/dennis"; home = "/Users/dennis";
description = "Dennis Schoepf"; description = "Dennis Schoepf";
}; };
nix.settings.trusted-users = [ "dennis" ];
nixpkgs.config.allowUnfree = true;
# System Packages # System Packages
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git
btop
fish
ripgrep
fzf
fd
sd
bat
neovim
just
tldr
fortune
stylua
typescript-language-server
vscode-langservers-extracted
tailwindcss-language-server
lua-language-server
prettierd
eslint_d
atuin
nil
nurl
shellcheck
lazygit
ffmpeg
tree-sitter
zoxide
sqlite
fnm
imagemagick
circumflex circumflex
gh gh
# rsync # rsync
]; ];
# Homebrew
homebrew = {
user = "dennis";
enable = true;
onActivation = {
autoUpdate = true;
upgrade = true;
cleanup = "zap";
};
masApps = { masApps = {
Bitwarden = 1352778147; Bitwarden = 1352778147;
Wireguard = 1451685025; Wireguard = 1451685025;
@ -76,7 +36,6 @@
}; };
brews = [ brews = [
"mas"
"watchman" "watchman"
"pnpm" "pnpm"
"pkg-config" "pkg-config"
@ -96,15 +55,6 @@
casks = [ casks = [
"arc" "arc"
"microsoft-teams" "microsoft-teams"
"tailscale"
"font-victor-mono"
"font-victor-mono-nerd-font"
"vlc"
"wezterm"
"hiddenbar"
"syncthing"
"eurkey"
"karabiner-elements"
"wezterm" "wezterm"
"1password" "1password"
"1password-cli" "1password-cli"
@ -112,8 +62,6 @@
"zulu@17" "zulu@17"
"postman" "postman"
"docker-desktop" "docker-desktop"
"raycast"
"spotify"
"google-chrome" "google-chrome"
]; ];
}; };
@ -121,69 +69,6 @@
# Shells # Shells
environment.shells = [ pkgs.fish ]; environment.shells = [ pkgs.fish ];
# System settings
system = {
primaryUser = "dennis";
stateVersion = 5;
activationScripts.postActivation.text = ''
/System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
'';
defaults = {
smb.NetBIOSName = "dnsc-work";
NSGlobalDomain."com.apple.swipescrolldirection" = false;
dock = {
autohide = true;
autohide-delay = 0.01;
autohide-time-modifier = 0.01;
expose-group-apps = true;
launchanim = false;
minimize-to-application = true;
orientation = "right";
show-recents = false;
persistent-apps = [
"/Applications/Arc.app"
"/Applications/WezTerm.app"
"/Applications/Microsoft Teams.app"
"/System/Applications/System Settings.app/"
];
persistent-others = [
"/Users/dennis/Downloads"
];
};
finder = {
AppleShowAllExtensions = true;
CreateDesktop = false;
FXEnableExtensionChangeWarning = false;
FXPreferredViewStyle = "clmv";
ShowPathbar = true;
ShowStatusBar = true;
};
loginwindow = {
LoginwindowText = "λ dnsc-work (powered by nix-darwin)";
};
menuExtraClock = {
Show24Hour = true;
ShowDate = 0;
};
screencapture = {
location = "/Users/dennis/Downloads";
target = "file";
};
spaces.spans-displays = false;
};
};
# Add ability to used TouchID for sudo authentication
security.pam.services.sudo_local.touchIdAuth = true;
# Home Manager Setup # Home Manager Setup
home-manager = { home-manager = {
extraSpecialArgs = { inherit inputs outputs; }; extraSpecialArgs = { inherit inputs outputs; };