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 --- darwin/home.nix | 13 ++++++++++++- hosts/morpheus/configuration.nix | 33 ++++++++++++++++++--------------- 2 files changed, 30 insertions(+), 16 deletions(-) diff --git a/darwin/home.nix b/darwin/home.nix index 5e52de6..0bc3dd6 100644 --- a/darwin/home.nix +++ b/darwin/home.nix @@ -19,14 +19,25 @@ fzf docker neovim + lf pinentry_mac - # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; }) + docker + kubectl + terraform + kops + k9s + # gui + zoom-us + slack ]; programs.home-manager.enable = true; programs.zsh = { enable = true; enableCompletion = true; + #sessionVariables = { + # PATH = "/etc/profiles/per-user/shubh/bin:$PATH"; + #}; shellAliases = { ll = "ls -l"; v = "nvim"; 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