| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- { 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"
- sudo nixos-rebuild switch --flake .#nixstation
- flatpak update -y
- sudo flatpak update -y
- cd "$ORIG_CWD"
- }
- jclone() {
- git clone https://github.com/johron/$1
- }
- '';
- };
- 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
- '';
- };
- };
- };
- }
|