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 <