Nix
This sets up my local nix workflow. It uses home manager.
{ config, pkgs, ... }: { # Home Manager needs a bit of information about you and the paths it should # manage. home.username = "abrahms"; home.homeDirectory = "/home/abrahms"; xdg.dataHome = "/home/abrahms/.local/share/"; nixpkgs.config.allowUnfree = true; # This value determines the Home Manager release that your configuration is # compatible with. This helps avoid breakage when a new Home Manager release # introduces backwards incompatible changes. # # You should not change this value, even if you update Home Manager. If you do # want to update the value, then make sure to first check the Home Manager # release notes. home.stateVersion = "23.05"; # Please read the comment before changing. # The home.packages option allows you to install Nix packages into your # environment. home.packages = [ # backups pkgs.dropbox pkgs.duplicacy # desktop apps pkgs.discord pkgs.firefox pkgs.slack pkgs.signal-desktop pkgs.spotify pkgs.remmina # remote desktop pkgs.element-desktop # matrix client pkgs.gimp # image editing pkgs.obs-studio # screen recording pkgs.skypeforlinux # phone calls pkgs.zotero # knowledge base # unix utils pkgs.xclip # pipe to clipboard pkgs.zsh pkgs.htop pkgs.pinentry-gtk2 pkgs.ripgrep # faster grep pkgs.lsd # nicer ls pkgs.bat # nicer cat pkgs.autojump # nicer cd pkgs.git pkgs.delta # pretty, side-by-side diffs pkgs.scrot # screenshots pkgs.gnupg pkgs.pinentry-gtk2 # enter pin for gnupg pkgs.gh # github cli (makes issue creation easier) # prog lang pkgs.go pkgs.languagetool pkgs.rustup pkgs.gcc # tried to keep it in the relevant project, but somehow $CC gets changed which causes lots of recompilation in rust. # graphics pkgs.graphviz pkgs.texlive.combined.scheme-full pkgs.pandoc pkgs.libvterm pkgs.emacs-unstable pkgs.emacsPackages.jinx pkgs.aspellDicts.en # And the dictionaries for jinx pkgs.aspellDicts.en-computers pkgs.aspellDicts.en-science # maybe pkgs.nodePackages.mermaid-cli pkgs.haskellPackages.markdown pkgs.emacsPackages.vterm pkgs.plantuml pkgs.nodePackages.typescript-language-server pkgs.nodePackages.javascript-typescript-langserver pkgs.nodePackages.yaml-language-server pkgs.nodePackages.typescript pkgs.gopls pkgs.gocode pkgs.golint pkgs.gotools pkgs.godef pkgs.proselint pkgs.hub pkgs.shellcheck pkgs.sourceHighlight # fonts pkgs.unifont pkgs.inconsolata-nerdfont pkgs.terminus-nerdfont pkgs.vollkorn pkgs.cascadia-code pkgs.anonymousPro pkgs.hack-font pkgs.profont pkgs.nerdfonts # TODO: # dkjson # mu4e # gpg # docker # pip # imapfilter, isync ]; # Home Manager is pretty good at managing dotfiles. The primary way to manage # plain files is through 'home.file'. home.file = { # # Building this configuration will create a copy of 'dotfiles/screenrc' in # # the Nix store. Activating the configuration will then make '~/.screenrc' a # # symlink to the Nix store copy. # ".screenrc".source = dotfiles/screenrc; # # You can also set the file content immediately. # ".gradle/gradle.properties".text = '' # org.gradle.console=verbose # org.gradle.daemon.idletimeout=3600000 # ''; }; # You can also manage environment variables but you will have to manually # source # # ~/.nix-profile/etc/profile.d/hm-session-vars.sh # # or # # /etc/profiles/per-user/abrahms/etc/profile.d/hm-session-vars.sh # # if you don't want to manage your shell through Home Manager. home.sessionVariables = { # EDITOR = "emacs"; }; # Let Home Manager install and manage itself. programs.home-manager.enable = true; nixpkgs.overlays = [ (import (builtins.fetchTarball { url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz; })) ]; }
I'd like to enable nix search
as a convenience function, which requires enabling experimental features.
experimental-features = nix-command flakes