regular backup

This commit is contained in:
arielherself 2025-01-09 15:27:36 +08:00
parent 9a47c44a6d
commit 88c8e77031
Signed by: arielherself
SSH Key Fingerprint: SHA256:AK3cyo9tFsp7Mox7K0sYphleC8hReXhnRKxwuDT5LBc
4 changed files with 28 additions and 1 deletions

7
.vimrc
View File

@ -97,7 +97,11 @@ Plug 'embark-theme/vim'
Plug 'tpope/vim-obsession' Plug 'tpope/vim-obsession'
Plug 'dhruvasagar/vim-prosession' Plug 'dhruvasagar/vim-prosession'
Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
Plug 'itchyny/vim-cursorword' if has('nvim')
Plug 'tzachar/local-highlight.nvim'
else
Plug 'itchyny/vim-cursorword'
endif
Plug 'wakatime/vim-wakatime' Plug 'wakatime/vim-wakatime'
Plug 'tpope/vim-surround' Plug 'tpope/vim-surround'
Plug 'tpope/vim-commentary' Plug 'tpope/vim-commentary'
@ -335,6 +339,7 @@ let g:airline_right_sep = ''
let g:airline_right_alt_sep = '' let g:airline_right_alt_sep = ''
if has('nvim') if has('nvim')
lua require('local-highlight').setup { cw_hlgroup = 'LspReferenceText' }
lua require('gitsigns').setup { attach_to_untracked = true, current_line_blame = true, current_line_blame_opts = { delay = 0 } } lua require('gitsigns').setup { attach_to_untracked = true, current_line_blame = true, current_line_blame_opts = { delay = 0 } }
endif endif

Binary file not shown.

View File

@ -45,6 +45,10 @@ in {
directory = /mnt/fdos_server/OS-24Fall-FDU directory = /mnt/fdos_server/OS-24Fall-FDU
[credential] [credential]
helper = store helper = store
[diff]
tool = vimdiff
[merge]
tool = vimdiff
''; '';
}; };
".vimrc" = { ".vimrc" = {
@ -311,6 +315,7 @@ in {
pkgs.patchelf pkgs.patchelf
# pkgs.screenkey # pkgs.screenkey
pkgs.ipatool # Search and download IPAs pkgs.ipatool # Search and download IPAs
unstable.open-webui
# My version of BerkeleyMono NF is incomplete. Should add some fallback fonts. # My version of BerkeleyMono NF is incomplete. Should add some fallback fonts.
# (pkgs.nerdfonts.override { fonts = [ # (pkgs.nerdfonts.override { fonts = [
@ -439,6 +444,7 @@ in {
# set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
set-option -g default-shell "${pkgs.zsh}/bin/zsh" set-option -g default-shell "${pkgs.zsh}/bin/zsh"
set -g default-command "${pkgs.zsh}/bin/zsh" set -g default-command "${pkgs.zsh}/bin/zsh"
set-option -g set-titles on
setw -g mode-keys vi setw -g mode-keys vi
set-option -g status-position top set-option -g status-position top
set -g status-bg default set -g status-bg default

View File

@ -0,0 +1,16 @@
with import <nixpkgs> {};
(pkgs.buildFHSEnv {
name = "open-webui-env";
targetPkgs = pkgs: with pkgs; [
(python311.withPackages (python-pkgs: with python-pkgs; [
pip
]))
libgcc
];
profile = ''
mkdir -p $HOME/.nix-envs/open-webui-env
${python311}/bin/python -m venv $HOME/.nix-envs/open-webui-env
source $HOME/.nix-envs/open-webui-env/bin/activate
$HOME/.nix-envs/open-webui-env/bin/pip install open-webui
'';
}).env