aboutsummaryrefslogblamecommitdiff
path: root/hosts/mba/default.nix
blob: 04d606632e85583b2fec43af1377e7a68b4230f8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



                                    






                                                         


                                                          

                             


                                                                        



                                   
             

                                       

      
            
                           


             
                     
              
               
             
                                                                
                            
              
                   

                    
                 
            

      


                                          




                                                       

                                      
                                                          
 
{ pkgs, ... }:
{
  services.nix-daemon.enable = true;

  nix = {
    package = pkgs.nixFlakes;
    settings = {
      experimental-features = [ "nix-command" "flakes" ];
    };
  };

  # in order to install things like 1password's extensions
  nixpkgs.config.allowUnfree = true;

  programs.zsh.enable = true;

  # Required for homebrew on aarch64
  environment.systemPath = [ "/opt/homebrew/bin" "/opt/homebrew/sbin" ];

  homebrew = {
    enable = true;
    onActivation.autoUpdate = true;

    brews = [
      "aspell" # spelling
      "kind" # to run local k8s cluster
    ];

    taps = [
      "homebrew/cask-fonts"
    ];

    casks = [
      "1password-cli"
      "docker"
      "element"
      "emacs"
      "font-monaspace" # https://github.com/githubnext/monaspace
      "font-source-code-pro"
      "iterm2"
      "netnewswire"
      "transmission"
      "vlc"
      "wireshark"
      "zoom"
    ];
  };

  users.users.fcuny.home = "/Users/fcuny";

  system.defaults.dock.autohide = true;
  system.defaults.dock.orientation = "left";
  system.defaults.dock.showhidden = false;
  system.defaults.finder.AppleShowAllExtensions = true;

  home-manager.useGlobalPkgs = true;
  home-manager.useUserPackages = true;
  home-manager.users.fcuny = import ../../home/darwin.nix;
}