1
This commit is contained in:
2022-07-01 22:27:53 +02:00
parent 2ff345f513
commit 5230390e12

View File

@ -30,7 +30,12 @@ rec {
# Chinese Input # Chinese Input
i18n.inputMethod.enabled = "fcitx5"; i18n.inputMethod.enabled = "fcitx5";
i18n.inputMethod.fcitx5.addons = with pkgs; [ fcitx5-gtk libsForQt5.fcitx5-qt fcitx5-chinese-addons fcitx5-configtool ]; i18n.inputMethod.fcitx5.addons = with pkgs; [
fcitx5-gtk
libsForQt5.fcitx5-qt
fcitx5-chinese-addons
fcitx5-configtool
];
# Make fonts installed through packages available to applications # Make fonts installed through packages available to applications
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
@ -47,7 +52,8 @@ rec {
EDITOR = "nvim"; EDITOR = "nvim";
VISUAL = "nvim"; VISUAL = "nvim";
MOZ_ENABLE_WAYLAND = 1; MOZ_ENABLE_WAYLAND = 1;
XDG_DATA_DIRS = "/var/lib/flatpak/exports/share:/home/christoph/.local/share/flatpak/exports/share:$XDG_DATA_DIRS"; XDG_DATA_DIRS =
"/var/lib/flatpak/exports/share:/home/christoph/.local/share/flatpak/exports/share:$XDG_DATA_DIRS";
DOCKER_BUILDKIT = 1; DOCKER_BUILDKIT = 1;
LANG = "en_US.UTF-8"; LANG = "en_US.UTF-8";
WINEESYNC = 1; WINEESYNC = 1;
@ -59,7 +65,6 @@ rec {
# TODO: Investigate if this also slows down Gnome login # TODO: Investigate if this also slows down Gnome login
# GTK_USE_PORTAL = 1; # GTK_USE_PORTAL = 1;
}; };
stateVersion = "22.05"; stateVersion = "22.05";
@ -202,9 +207,7 @@ rec {
programs = { programs = {
home-manager.enable = true; home-manager.enable = true;
bat = { bat = { enable = true; };
enable = true;
};
command-not-found.enable = true; command-not-found.enable = true;
@ -239,28 +242,37 @@ rec {
cd = "z"; cd = "z";
cp = "cp -i"; cp = "cp -i";
ls = "exa --color always --group-directories-first -F --git --icons"; # color-ls ls =
lsl = "exa --color always --group-directories-first -F -l --git --icons"; "exa --color always --group-directories-first -F --git --icons"; # color-ls
lsa = "exa --color always --group-directories-first -F -l -a --git --icons"; lsl =
tre = "exa --color always --group-directories-first -F -T -L 2 ---icons"; "exa --color always --group-directories-first -F -l --git --icons";
lsa =
"exa --color always --group-directories-first -F -l -a --git --icons";
tre =
"exa --color always --group-directories-first -F -T -L 2 ---icons";
mkd = "mkdir -p"; mkd = "mkdir -p";
blk = "lsblk -o NAME,LABEL,UUID,FSTYPE,SIZE,FSUSE%,MOUNTPOINT,MODEL | bat"; blk =
"lsblk -o NAME,LABEL,UUID,FSTYPE,SIZE,FSUSE%,MOUNTPOINT,MODEL | bat";
fsm = "df -h | bat"; fsm = "df -h | bat";
grp = "grep --color=auto -E"; grp = "grep --color=auto -E";
fzp = "fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}'"; fzp =
"fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}'";
fre = "free -m"; fre = "free -m";
r = "ranger --choosedir=$HOME/.rangerdir; set LASTDIR (cat $HOME/.rangerdir); cd $LASTDIR"; r =
"ranger --choosedir=$HOME/.rangerdir; set LASTDIR (cat $HOME/.rangerdir); cd $LASTDIR";
rsync = "rsync -chavzP --info=progress2"; rsync = "rsync -chavzP --info=progress2";
performance = "sudo cpupower frequency-set -g performance && nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1"; performance =
powersave = "sudo cpupower frequency-set -g powersave && nvidia-settings -a [gpu:0]/GPUPowerMizerMode=0"; "sudo cpupower frequency-set -g performance && nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1";
powersave =
"sudo cpupower frequency-set -g powersave && nvidia-settings -a [gpu:0]/GPUPowerMizerMode=0";
wat = "watch -d -c -n -0.5"; wat = "watch -d -c -n -0.5";
dus = "sudo dust -r"; dus = "sudo dust -r";
dsi = "sudo du -sch . | bat"; dsi = "sudo du -sch . | bat";
prc = "procs -t"; prc = "procs -t";
emacs = "emacs -nw"; emcs = "emacs -nw";
gs = "git status"; gs = "git status";
gcm = "git commit -m"; gcm = "git commit -m";
@ -283,7 +295,8 @@ rec {
league = "sudo sysctl -w abi.vsyscall32=0"; league = "sudo sysctl -w abi.vsyscall32=0";
mp4 = "yt-dlp -f 'bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b' --recode-video mp4"; # the -f options are yt-dlp defaults mp4 =
"yt-dlp -f 'bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b' --recode-video mp4"; # the -f options are yt-dlp defaults
mp3 = "yt-dlp -f 'ba' --extract-audio --audio-format mp3"; mp3 = "yt-dlp -f 'ba' --extract-audio --audio-format mp3";
}; };
shellAliases = { shellAliases = {
@ -330,9 +343,7 @@ rec {
}; };
# TODO: # TODO:
extensions = with pkgs.nur.repos.rycee.firefox-addons; [ extensions = with pkgs.nur.repos.rycee.firefox-addons; [ ublock-origin ];
ublock-origin
];
# TODO: # TODO:
profiles = { profiles = {
@ -343,7 +354,8 @@ rec {
settings = { settings = {
"app.update.auto" = false; "app.update.auto" = false;
# "browser.startup.homepage" = "https://lobste.rs"; # "browser.startup.homepage" = "https://lobste.rs";
"identity.fxaccounts.account.device.name" = nixosConfig.networking.hostName; # NOTE: nixosConfig attribute is somehow not documented, so Idk if I should use it "identity.fxaccounts.account.device.name" =
nixosConfig.networking.hostName; # NOTE: nixosConfig attribute is somehow not documented, so Idk if I should use it
"signon.rememberSignons" = false; "signon.rememberSignons" = false;
# "browser.urlbar.placeholderName" = "DuckDuckGo"; # "browser.urlbar.placeholderName" = "DuckDuckGo";
# "toolkit.legacyUserProfileCustomizations.stylesheets" = true; # "toolkit.legacyUserProfileCustomizations.stylesheets" = true;