dotfiles/home/utils/common.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

2024-05-31 23:44:20 +02:00
{ inputs, config, pkgs, ... }:
2024-05-31 14:52:02 +02:00
2024-05-31 14:37:28 +02:00
{
2024-09-13 10:46:49 +02:00
imports = [
(import ../zsh { inherit inputs config pkgs; })
2024-09-20 15:13:14 +02:00
(import ../bash { inherit inputs config pkgs; })
2024-09-13 10:46:49 +02:00
../git
../nvim
../email
../lf
../tmux
../yazi
];
2024-05-31 15:20:29 +02:00
2024-09-13 10:46:49 +02:00
home.stateVersion = "24.11";
targets.genericLinux.enable = true;
nixpkgs.config.allowUnfree = true;
programs.home-manager.enable = true;
home.packages = with pkgs; [ htop waypipe ];
2024-05-31 19:03:49 +02:00
2024-09-13 10:46:49 +02:00
home.sessionVariables = {
XDG_CONFIG_HOME = "${config.xdg.configHome}";
XDG_CACHE_HOME = "${config.xdg.cacheHome}";
XDG_DATA_HOME = "${config.xdg.dataHome}";
XDG_STATE_HOME = "${config.xdg.stateHome}";
2024-05-31 19:03:49 +02:00
2024-09-13 10:46:49 +02:00
CUDA_CACHE_PATH = "${config.xdg.cacheHome}/nv";
DOCKER_CONFIG = "${config.xdg.configHome}/docker";
LESSHISTFILE = "${config.xdg.cacheHome}/less/history";
PARALLEL_HOME = "${config.xdg.configHome}/parallel";
PYTHONSTARTUP = "${config.xdg.configHome}/python/pythonrc";
SQLITE_HISTORY = "${config.xdg.cacheHome}/sqlite_history";
WINEPREFIX = "${config.xdg.dataHome}/wine";
# XDG_CURRENT_DESKTOP = "GNOME";
2024-09-13 10:46:49 +02:00
OPENCV_LOG_LEVEL = "ERROR";
COLORTERM = "truecolor";
};
2024-06-04 16:15:48 +02:00
2024-09-13 10:46:49 +02:00
home.file.".latexmkrc".text = ''
2024-06-13 14:29:55 +02:00
$pdf_mode = 1;
$pdf_previewer = 'evince %O %S';
2024-09-13 10:46:49 +02:00
'';
2024-06-13 14:29:55 +02:00
2024-05-31 14:37:28 +02:00
}