From 8914f97f2c7232c31bf07f0c8e87fcda12194b5f Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Tue, 26 Sep 2023 00:54:31 -0700 Subject: darwin: working config --- hosts/morpheus/configuration.nix | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) (limited to 'hosts/morpheus') diff --git a/hosts/morpheus/configuration.nix b/hosts/morpheus/configuration.nix index dc1edb3..c3667f1 100644 --- a/hosts/morpheus/configuration.nix +++ b/hosts/morpheus/configuration.nix @@ -3,21 +3,24 @@ { services.nix-daemon.enable = true; users.users.shubh.home = "/Users/shubh"; + programs.zsh.enable = true; + nixpkgs.config.allowUnfree = true; + security.pki.certificateFiles = [ "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt" "/etc/ssl/certs/zscaler.pem" ]; - #homebrew = { - # enable = true; - # casks = [ "iterm2" "qtpass" ]; - #}; + homebrew = { + enable = true; + casks = [ "brave-browser" "karabiner-elements" ]; + }; - #system.activationScripts.applications.text = pkgs.lib.mkForce ( - # '' - # echo "setting up ~/Applications..." >&2 - # rm -rf ~/Applications/Nix\ Apps - # mkdir -p ~/Applications/Nix\ Apps - # for app in $(find ${config.system.build.applications}/Applications -maxdepth 1 -type l); do - # src="$(/usr/bin/stat -f%Y "$app")" - # cp -r "$src" ~/Applications/Nix\ Apps - # done - # '' - #); + system.activationScripts.applications.text = pkgs.lib.mkForce ( + '' + echo "setting up ~/Applications..." >&2 + rm -rf ~/Applications/Nix\ Apps + mkdir -p ~/Applications/Nix\ Apps + for app in $(find ${config.system.build.applications}/Applications -maxdepth 1 -type l); do + src="$(/usr/bin/stat -f%Y "$app")" + cp -r "$src" ~/Applications/Nix\ Apps + done + '' + ); } -- cgit v1.2.3