| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- { pkgs, lib, ... }:
- {
- home = {
- file = {
- bashrc = {
- target = ".bashrc";
- text = ''
- current_git_branch() {
- git branch 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
- }
- shlvl_prompt() {
- (( SHLVL > 1 )) && printf '(%d)' "$SHLVL"
- }
- PS1='$(shlvl_prompt)(\[\033[01;94m\]\u\[\033[00;00m\]@\[\033[01;94m\]\h\[\033[00;00m\]:\[\033[01;34m\]\w\[\033[00m\])\[\033[01;32m\]$(current_git_branch)\[\033[00m\]$ '
- nix-update() {
- set -e
- ORIG_CWD="$(pwd)"
- sudo nix-channel --update
- cd "$HOME/nix-dots"
- nix flake update
- sudo nh os switch
- flatpak update -y
- sudo flatpak update -y
- cd "$ORIG_CWD"
- }
- jclone() {
- git clone https://github.com/johron/$1
- }
- XCOMPOSEFILE=$HOME/.XCompose
- '';
- };
- kdeglobals = {
- target = ".config/kdeglobals";
- text = ''
- [UiSettings]
- ColorScheme=BreezeDark
- [KDE]
- ShowDeleteCommand=true
- [KFileDialog Settings]
- Allow Expansion=false
- Automatically select filename extension=true
- Breadcrumb Navigation=true
- Decoration position=2
- Show Full Path=false
- Show Inline Previews=true
- Show Preview=false
- Show Speedbar=true
- Show hidden files=false
- Sort by=Name
- Sort directories first=true
- Sort hidden files last=false
- Sort reversed=false
- Speedbar Width=144
- View Style=Simple
- [PreviewSettings]
- EnableRemoteFolderThumbnail=false
- MaximumRemoteSize=0
- '';
- };
- xcompose = {
- target = ".XCompose";
- text = ''
- include "%L"
- <Multi_key> <comma> : "̨" U0328
- '';
- };
- };
- };
- }
|