#+TITLE: Nix Configuration #+AUTHOR: Mitch Tishmack #+STARTUP: hidestars #+STARTUP: odd #+BABEL: :cache yes #+PROPERTY: header-args :cache yes #+PROPERTY: header-args :padline no #+PROPERTY: header-args :mkdirp yes #+PROPERTY: header-args :comments no #+PROPERTY: header-args :replace yes TODO: For now macos configuration.nix setup. Will generalize later to nixos too. #+BEGIN_SRC conf :padline no :mkdirp yes :tangle (tangle/file ".nixpkgs/darwin-configuration.nix" (and (bound-and-true-p nix-p) (bound-and-true-p macos-p))) { pkgs, ... }: { # List packages installed in system profile. To search by name, run: # $ nix-env -qaP | grep wget environment.systemPackages = with pkgs; [ aria aspell aspellDicts.en cacert clang cloc cscope ctags curl diffutils docbook5 emacs entr gist gitAndTools.git-extras gitAndTools.gitFull gmp gnumake gnutar gnutls googler graphviz-nox haskellPackages.ShellCheck haskellPackages.pandoc htop imagemagick iperf jq keychain less llvm mercurial moreutils mosh mr ncdu openssl p7zip patchutils pbzip2 pkg-config ponysay pv python38Packages.howdoi restic ripgrep rlwrap rsync rtags shfmt silver-searcher sloccount sshpass texlive.combined.scheme-basic tmux transcrypt tree unzip upx wakelan watch wget xhyve xz youtube-dl yq ]; # Use a custom configuration.nix location. # $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix # environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix"; # Auto upgrade nix package and the daemon service. # services.nix-daemon.enable = true; # nix.package = pkgs.nix; # Create /etc/bashrc that loads the nix-darwin environment. programs.zsh.enable = true; # default shell on catalina # programs.fish.enable = true; # Used for backwards compatibility, please read the changelog before changing. # $ darwin-rebuild changelog system.stateVersion = 4; } #+END_SRC