From 43da9edb4598eef509c481ae0b305384418c45de Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 5 May 2023 19:41:58 -0700 Subject: home/profiles: move (almost) all modules to profiles This is a major refactor, similar to what was done for the hosts, but in a single commit. --- home/profiles/home.nix | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 home/profiles/home.nix (limited to 'home/profiles/home.nix') diff --git a/home/profiles/home.nix b/home/profiles/home.nix new file mode 100644 index 0000000..1aa90cf --- /dev/null +++ b/home/profiles/home.nix @@ -0,0 +1,69 @@ +{ config, lib, pkgs, ... }: +{ + imports = [ + ./git.nix + ./ssh.nix + ./zsh + ]; + + home.packages = with pkgs; [ + dive # explore layers in docker images + jq + ripgrep + util-linux + xdg-utils + + age + rage + age-plugin-yubikey + + # tools inside the tools directory + tools.git-blame-stats + tools.git-broom + tools.ipconverter + tools.seqstat + + # tools from external repositories + # x509-info + # gh-ssh-keys + # masked-emails + ]; + + programs.direnv = { + enable = true; + nix-direnv.enable = true; + config = { + global.disable_stdin = true; + global.strict_env = true; + }; + }; + + xdg = { + enable = true; + # File types + mime.enable = true; + # File associatons + mimeApps = { enable = true; }; + # User directories + userDirs = { + enable = true; + createDirectories = true; + desktop = "${config.home.homeDirectory}/documents"; + documents = "${config.home.homeDirectory}/documents"; + download = "${config.home.homeDirectory}/downloads"; + music = "${config.home.homeDirectory}/media/music"; + pictures = "${config.home.homeDirectory}/media/pictures"; + publicShare = "${config.home.homeDirectory}/documents/public"; + templates = "${config.home.homeDirectory}/documents/templates"; + videos = "${config.home.homeDirectory}/media/videos"; + }; + }; + + home.sessionVariables = with config.xdg; { + LESS = "-FRSXM"; + LESSCHARSET = "utf-8"; + LESSHISTFILE = "${dataHome}/less/history"; + LESSKEY = "${configHome}/less/lesskey"; + PAGER = "less"; + }; +} -- cgit v1.2.3