From 7a25ac669f4664f070fdc651557964afc0242508 Mon Sep 17 00:00:00 2001 From: DerGrumpf Date: Sat, 6 Jun 2026 21:04:49 +0200 Subject: [PATCH] Cleaned up darwin from noise; Moved overlays too a shared module --- darwin/default.nix | 8 -- darwin/settings.nix | 62 +++++++------- darwin/yabai.nix | 65 +-------------- flake.lock | 82 +++++++++---------- flake.nix | 6 ++ home/fonts.nix | 30 ++++++- home/neovim/default.nix | 7 +- home/packages.nix | 1 + nixos/default.nix | 5 -- .../overlays.nix => overlays/default.nix | 0 .../packages => overlays}/gs1200-exporter.nix | 0 {nixos/packages => overlays}/oidcwarden.nix | 0 12 files changed, 112 insertions(+), 154 deletions(-) rename nixos/packages/overlays.nix => overlays/default.nix (100%) rename {nixos/packages => overlays}/gs1200-exporter.nix (100%) rename {nixos/packages => overlays}/oidcwarden.nix (100%) diff --git a/darwin/default.nix b/darwin/default.nix index ab27ea2..f9d250f 100644 --- a/darwin/default.nix +++ b/darwin/default.nix @@ -10,11 +10,6 @@ ./yabai.nix ]; - home-manager.users.${primaryUser}.targets.darwin = { - linkApps.enable = true; - copyApps.enable = false; - }; - # nix config nix = { settings = { @@ -55,9 +50,6 @@ info.enable = false; # Skip info pages }; - nixpkgs.config = { - allowUnfree = true; - }; # homebrew installation manager nix-homebrew = { user = primaryUser; diff --git a/darwin/settings.nix b/darwin/settings.nix index 06c9710..6d2ec86 100644 --- a/darwin/settings.nix +++ b/darwin/settings.nix @@ -1,27 +1,27 @@ -{ self, ... }: +{ self, primaryUser, ... }: +let + hmApps = app: "/Users/${primaryUser}/Applications/Home Manager Apps/${app}.app"; + sysApps = app: "/System/Applications/${app}.app"; + apps = app: "/Applications/${app}.app"; +in { - # touch ID for sudo security.pam.services.sudo_local.touchIdAuth = true; - # system defaults and preferences system = { stateVersion = 6; configurationRevision = self.rev or self.dirtyRev or null; startup.chime = false; - activationScripts = { - setWallpaper.text = '' - /usr/bin/osascript <