diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2023-11-10 19:57:21 +0100 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2023-11-10 20:19:52 +0100 |
| commit | 251a7bacac7ed2aeb9e6806d003e916ad65b448b (patch) | |
| tree | 87e61dd72d9d4a5820d7b4a6feb1389ccd05cf6d /share/home/minimal.nix | |
| parent | 733619cf99be510f0ee13e84e03f7e7bb3280af5 (diff) | |
Refactor shared module
Diffstat (limited to 'share/home/minimal.nix')
| -rw-r--r-- | share/home/minimal.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/share/home/minimal.nix b/share/home/minimal.nix new file mode 100644 index 0000000..c844000 --- /dev/null +++ b/share/home/minimal.nix @@ -0,0 +1,51 @@ +# This module contains a bunch of things that make up a minimal environment that +# I want on ALL of my machines. +{ pkgs, config, ... }: { + imports = [ ./helix.nix ./zsh.nix ]; + + home.packages = with pkgs; [ + wget + git + age + gnupg + ffmpeg + + # Modern unix + ripgrep # grep + fd # find + sd # sed + dua # du + + git-annex + git-remote-gcrypt + + # tools for dealing with all sorts archives + atool + unzip + gnutar + + # Useful nix tooling + nix-tree + ]; + + xdg.enable = true; + + # Lots of these are courtesy of xdg-ninja + # https://github.com/b3nj5m1n/xdg-ninja + # + # Even though these tools may or may not be installed on any particular system + # having these variables here is a preventative measure to make sure that + # $HOME doesn't get polluted + home.sessionVariables = with config.xdg; { + CARGO_HOME = "${dataHome}/cargo"; + GOPATH = "${dataHome}/go"; + WINEPREFIX = "${dataHome}/wine"; + XCOMPOSECACHE = "${cacheHome}/X11/xcompose"; + GTK2_RC_FILES = "${configHome}/gtk-2.0/gtkrc"; + NODE_REPL_HISTORY = "${dataHome}/node_repl_history"; + NPM_CONFIG_USERCONFIG = "${configHome}/npm/npmrc"; + # shell + HISTFILE = "${stateHome}/shell/history"; + ZDOTDIR = "${configHome}/zsh"; + }; +} |
