2022-10-11 20:34:09 +02:00
|
|
|
{ config, pkgs }:
|
2022-05-20 12:39:40 +02:00
|
|
|
|
|
|
|
let
|
2022-05-22 16:53:31 +02:00
|
|
|
enLocale = "en_US.utf8";
|
|
|
|
deLocale = "de_DE.utf8";
|
2022-05-20 12:39:40 +02:00
|
|
|
|
|
|
|
in {
|
|
|
|
|
|
|
|
language = {
|
2022-05-22 16:53:31 +02:00
|
|
|
# English
|
|
|
|
|
|
|
|
base = "${enLocale}";
|
|
|
|
ctype = "${enLocale}";
|
|
|
|
numeric = "${enLocale}";
|
|
|
|
collate = "${enLocale}";
|
|
|
|
messages = "${enLocale}";
|
|
|
|
|
|
|
|
# German
|
|
|
|
time = "${deLocale}";
|
|
|
|
monetary = "${deLocale}";
|
|
|
|
paper = "${deLocale}";
|
|
|
|
name = "${deLocale}";
|
|
|
|
address = "${deLocale}";
|
|
|
|
telephone = "${deLocale}";
|
|
|
|
measurement = "${deLocale}";
|
2022-05-20 12:39:40 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
keyboard = {
|
|
|
|
layout = "us";
|
|
|
|
model = "pc105";
|
|
|
|
options = [
|
|
|
|
"numpad:mac"
|
|
|
|
"ctrl:nocaps"
|
|
|
|
"compose:ralt"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-05-22 18:31:08 +02:00
|
|
|
pointerCursor = {
|
|
|
|
package = pkgs.qogir-icon-theme;
|
2022-06-07 08:49:09 +02:00
|
|
|
name = "Qogir-dark";
|
2022-05-22 18:31:08 +02:00
|
|
|
size = 16;
|
|
|
|
x11.enable = true;
|
|
|
|
gtk.enable = true;
|
|
|
|
};
|
|
|
|
|
2022-05-20 12:39:40 +02:00
|
|
|
sessionVariables = {
|
2022-08-15 08:27:05 +02:00
|
|
|
TERMINAL = "st";
|
|
|
|
EDITOR = "nvim";
|
|
|
|
SHELL = "zsh";
|
2022-05-20 12:39:40 +02:00
|
|
|
|
2022-10-11 20:34:09 +02:00
|
|
|
# Configure look up paths to not clutter home folder but follow XDG
|
|
|
|
|
|
|
|
XAUTHORITY = "${config.xdg.stateHome}/Xauthority";
|
|
|
|
ERRFILE = "${config.xdg.cacheHome}/X11/xsession-errors";
|
|
|
|
|
|
|
|
MYSQL_HISTFILE = "${config.xdg.dataHome}/mysql_history";
|
|
|
|
LESSHISTFILE = "${config.xdg.cacheHome}/less/history";
|
|
|
|
|
|
|
|
BUNDLE_USER_CONFIG = "${config.xdg.configHome}/bundle";
|
|
|
|
BUNDLE_USER_CACHE = "${config.xdg.cacheHome}/bundle";
|
|
|
|
BUNDLE_USER_PLUGIN = "${config.xdg.dataHome}/bundle";
|
|
|
|
|
|
|
|
ICEAUTHORITY = "${config.xdg.cacheHome}/ICEauthority";
|
|
|
|
DVDCSS_CACHE = "${config.xdg.dataHome}/dvdcss";
|
|
|
|
DOCKER_CONFIG = "${config.xdg.configHome}/docker";
|
|
|
|
|
|
|
|
# Program specific vars
|
2022-05-20 12:39:40 +02:00
|
|
|
|
|
|
|
LSCOLORS = "HxGxDxDxbxDxDxababcxcx";
|
|
|
|
LS_COLORS = "di=1;37:ln=1;36:so=1;33:pi=1;33:ex=31:bd=1;33:cd=1;33:su=30;41:sg=30;41:tw=32:ow=32";
|
|
|
|
GREP_COLOR = "0;30;44";
|
|
|
|
PHAN_COLOR_SCHEME = "code";
|
2022-10-11 20:34:09 +02:00
|
|
|
|
|
|
|
# Custom vars
|
|
|
|
|
|
|
|
TYPO3_CONTEXT = "Development/dsiepmann";
|
|
|
|
TYPO3_ADDITIONAL_CONFIGURATION = "${config.xdg.dataHome}/typo3-configuration/AdditionalConfiguration.inc.php";
|
2022-05-20 12:39:40 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
shellAliases = {
|
|
|
|
ll = "ls -laph --color=auto";
|
|
|
|
|
|
|
|
# Open in main view with all references.
|
|
|
|
tigr = "tig refs";
|
|
|
|
# Open in main view with ALL commits, not only current branch tree.
|
|
|
|
tiga = "tig --all --show-signature";
|
|
|
|
|
|
|
|
# Tmux outside tmux.
|
|
|
|
ta = "tmux attach";
|
|
|
|
tc = "tmux new-session -s ";
|
|
|
|
|
|
|
|
# TYPO3 contribution specific commands
|
2022-09-13 05:26:20 +02:00
|
|
|
t3Push = "git push origin HEAD:refs/for/main";
|
|
|
|
t3Pull = "git pull --rebase origin main; git checkout main";
|
|
|
|
t3Rollback = "git checkout main; git reset --hard origin/main";
|
2022-05-20 12:39:40 +02:00
|
|
|
t3Clean = "t3Rollback && t3Pull";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|