nix: update to 24.11

Reviewed-on: https://codeberg.org/leana8959/.files/pulls/1
Co-authored-by: Léana 江 <leana.jiang+git@icloud.com>
Co-committed-by: Léana 江 <leana.jiang+git@icloud.com>
This commit is contained in:
Primrose 2024-11-30 18:42:54 +00:00 committed by Léana
parent 57ed96f0ea
commit f6a89cba08
60 changed files with 696 additions and 752 deletions

View file

@ -1,7 +0,0 @@
{
nix.gc = {
automatic = true;
frequency = "weekly";
options = "--delete-older-than 15d";
};
}

View file

@ -1,13 +0,0 @@
{ pkgs, ... }:
{
i18n.inputMethod = {
enabled = "fcitx5";
fcitx5.addons = [
pkgs.fcitx5-chinese-addons
pkgs.fcitx5-table-extra
];
};
xdg.configFile."fcitx5".source = ./fcitx;
}

View file

@ -1,16 +0,0 @@
# vim:ft=ini
DarkTheme=default-dark
PerScreenDPI=false
PreferTextIcon=false
ShowLayoutNameInIcon=true
Theme=default
UseAccentColor=true
UseDarkTheme=false
UseInputMethodLanguageToDisplayText=true
Vertical Candidate List=false
WheelForPaging=true
Font="Noto Sans Mono CJK TC 18"
MenuFont="Noto Sans Mono CJK TC 12"
TrayFont="Noto Sans Mono CJK TC 12"

View file

@ -1,48 +0,0 @@
# vim:ft=ini
[Behavior]
ActiveByDefault=false
AllowInputMethodForPassword=false
AutoSavePeriod=30
CompactInputmethodInformation=true
CustomXkbOption=
DefaultPageSize=5
DisabledAddons=
EnabledAddons=
OverriedXkbOption=false
PreeditEnabledByDefault=true
PreloadInputMethod=true
ShareInputState=No
ShowFirstInputMethodInformation=true
ShowInputMethodInformation=true
ShowInputMethodInformationWhenFocusIn=false
ShowPreeditForPassword=false
[Hotkey]
EnumerateBackwardKeys=
EnumerateForwardKeys=
EnumerateSkipFirst=
EnumerateWithTriggerKeys=true
[Hotkey/AltTriggerKeys]
0=Shift_L
[Hotkey/EnumerateGroupBackwardKeys]
0=Control+Shift+space
[Hotkey/EnumerateGroupForwardKeys]
0=Control+space
[Hotkey/NextCandidate]
0=Tab
[Hotkey/NextPage]
0=Down
[Hotkey/PrevCandidate]
0=Shift+Tab
[Hotkey/PrevPage]
0=Up
[Hotkey/TriggerKeys]

View file

@ -1,33 +0,0 @@
# vim:ft=ini
[GroupOrder]
0=gDvorak
1=gDvorakFrench
2=gCangjie
[Groups/0]
Default Layout=us
DefaultIM=cangjie3
Name=gCangjie
[Groups/0/Items/0]
Layout=
Name=cangjie3
[Groups/1]
Default Layout=myDvorak
DefaultIM=keyboard-myDvorak
Name=gDvorak
[Groups/1/Items/0]
Layout=
Name=keyboard-myDvorak
[Groups/2]
Default Layout=myDvorakFrench
DefaultIM=keyboard-myDvorakFrench
Name=gDvorakFrench
[Groups/2/Items/0]
Layout=
Name=keyboard-myDvorakFrench

View file

@ -1,87 +0,0 @@
[Table]
# Select Second Candidate
SecondCandidate=
# Select Third Candidate
ThirdCandidate=
# Page size
PageSize=10
# Commit after auto select candidates
CommitAfterSelect=True
# Commit buffer when deactivating input method
CommitWhenDeactivate=True
# Commit Invalid Segment
CommitInvalidSegment=False
# Use full width
UseFullWidth=True
# Ignore built in punctuation
IgnorePunc=False
# First candidate as Preedit
FirstCandidateAsPreedit=False
# Fix embedded preedit cursor at the beginning of the preedit
PreeditCursorPositionAtBeginning=True
# Key to trigger quickphrase
QuickPhraseKey=
# Text to trigger quickphrase
QuickPhraseText=
# Don't sort word shorter than
NoSortInputLength=-1
# Sort candidate by code length
SortByCodeLength=True
# Order policy
OrderPolicy=Freq
# Use system language model
UseSystemLanguageModel=True
# Sort candidates based on current context
UseContextRelatedOrder=True
# Wildcard matching Key
MatchingKey=z
# Prefix key to trigger Pinyin
PinyinKey=
# Auto select candidate
AutoSelect=True
# Length limit of selecting the only candidate
AutoSelectLength=-2
# Regular expression for selecting the only candidate
AutoSelectRegex=
# Auto select when no match is found
NoMatchAutoSelectLength=0
# Regular expression for auto select when no match is found
NoMatchAutoSelectRegex=
# Auto phrase length
AutoPhraseLength=-1
# Learn auto phrase with phrase
AutoPhraseWithPhrase=False
# Marker for auto phrase in the candidates
MarkerForAutoPhrase=*
# Save auto phrase after being typed for ... times
SaveAutoPhraseAfter=4
# Exact Match
ExactMatch=False
# Learning
Learning=True
# Display Hint for word
Hint=False
# Display custom hint
DisplayCustomHint=True
# Separator text between hint and candidate
HintSeparator=" ~ "
# Candidate List orientation
CandidateLayoutHint=Vertical
# Allow use keypad key as table input
KeypadAsInput=False
[Table/PrevPage]
0=Left
[Table/NextPage]
0=Right
[Table/PrevCandidate]
0=Up
[Table/NextCandidate]
0=Down
[Table/DefaultCandidate]
0=space

View file

@ -1,27 +0,0 @@
{
programs.feh = {
enable = true;
keybindings = {
prev_img = [
"Left"
"Up"
];
next_img = [
"Right"
"Down"
];
scroll_left = "h";
scroll_right = "l";
scroll_up = "k";
scroll_down = "j";
# mimic sioyek
zoom_in = "plus";
zoom_out = "minus";
zoom_fit = "=";
};
};
}

View file

@ -9,7 +9,7 @@
pkgs.nil # nix
pkgs.yaml-language-server # yaml
pkgs.nodePackages.pyright # python
pkgs.pyright # python
pkgs.marksman # markdown
pkgs.taplo # toml

View file

@ -1,5 +1,9 @@
{ pkgs, ... }:
let
inherit (pkgs) myPkgs;
in
{
programs.direnv.enable = true;
@ -10,5 +14,7 @@
pkgs.nix-tree
pkgs.nurl
pkgs.nvd
myPkgs.nd
];
}

View file

@ -2,10 +2,8 @@
{
programs = {
starship.enable = true;
gpg.enable = true;
neovim.enable = true;
tmux.enable = true;
};
home.packages = [ pkgs.stow ];

View file

@ -1,24 +0,0 @@
{
programs.sioyek = {
enable = true;
bindings = {
"move_up" = "k";
"move_down" = "j";
"move_left" = "l";
"move_right" = "h";
"screen_down" = [
"d"
"<C-d>"
];
"screen_up" = [
"u"
"<C-u>"
];
};
config.should_launch_new_window = "1";
};
}