commit f8594d1fc4648bf94b4c769a1791e584a43dfc1a
parent 5a9dc23da5cb6de85db184eb22e3c9e16d1df559
Author: Toni Brown <me@tb148.net>
Date: Wed, 14 Jan 2026 19:17:40 +0800
Add wallpaper and update XDG user directories to English
- Add wallpaper.png to pictures directory
- Change XDG user directory names from Chinese to English
Diffstat:
3 files changed, 198 insertions(+), 197 deletions(-)
diff --git a/home.nix b/home.nix
@@ -1,200 +1,201 @@
{
- config,
- lib,
- pkgs,
- inputs,
- osConfig,
- ...
+ config,
+ lib,
+ pkgs,
+ inputs,
+ osConfig,
+ ...
}: {
- imports = [
- ./starship.nix
- # ./vesktop.nix
- ./zed-editor.nix
- ];
-
- # Home Manager needs a bit of information about you and the
- # paths it should manage.
- home.username = "tb148";
- home.homeDirectory = "/home/tb148";
- home.file.".face.icon".source = ./avatar.png;
-
- xdg.userDirs = {
- enable = true;
- createDirectories = true;
- desktop = "${config.home.homeDirectory}/桌面";
- documents = "${config.home.homeDirectory}/文档";
- download = "${config.home.homeDirectory}/下载";
- music = "${config.home.homeDirectory}/音乐";
- pictures = "${config.home.homeDirectory}/图片";
- publicShare = "${config.home.homeDirectory}/公共";
- templates = "${config.home.homeDirectory}/模板";
- videos = "${config.home.homeDirectory}/视频";
- };
-
- home.packages = with pkgs; [
- cargo
- (catppuccin-kde.override {
- flavour = ["mocha"];
- accents = ["mauve"];
- winDecStyles = ["classic"];
- })
- (catppuccin-papirus-folders.override {
- flavor = "mocha";
- accent = "mauve";
- })
- catppuccinifier-cli
- catppuccinifier-gui
- clang
- devenv
- dprint
- eslint
- ffmpeg
- fish
- gtkwave
- iosevka-bin
- iverilog
- jdk21
- jetbrains.idea
- jupyter
- krita
- libreoffice-qt-fresh
- logisim
- logisim-evolution
- mars-mips
- neocities
- nerd-fonts.iosevka
- nodejs
- obs-studio
- osu-lazer-bin
- pnpm
- ponysay
- proton-pass
- protonmail-bridge
- qalculate-qt
- rustc
- sageWithDoc
- sarasa-gothic
- sequoia-sq
- thunderbird
- unrar
- virtualenv
- vlc
- vokoscreen-ng
- ];
-
- programs.bat.enable = true;
-
- programs.direnv.enable = true;
-
- programs.fastfetch.enable = true;
-
- programs.fd.enable = true;
-
- programs.firefox.enable = true;
- programs.firefox.languagePacks = [
- "zh-CN"
- "en-US"
- ];
-
- programs.git.enable = true;
- programs.git.settings = {
- init.defaultBranch = "trunk";
- user.name = "Toni Brown";
- user.email = "me@tb148.net";
- };
- programs.git.signing.signByDefault = true;
- programs.git.signing.key = "53187AD414FDFBCC";
-
- programs.gpg.enable = true;
- programs.gpg.package = with pkgs;
- symlinkJoin {
- name = "gnupg-from-sequoia";
- paths = [
- gnupg
- sequoia-chameleon-gnupg
- ];
- postBuild = ''
- mv $out/bin/gpg $out/bin/gpg-g10code
- mv $out/bin/gpgv $out/bin/gpgv-g10code
- cp -P $out/bin/gpg-sq $out/bin/gpg
- cp -P $out/bin/gpgv-sq $out/bin/gpgv
- '';
- };
- services.gpg-agent = {
- enable = true;
- enableSshSupport = true;
- pinentry.package = pkgs.pinentry-qt;
- pinentry.program = "pinentry-qt";
- sshKeys = ["F2F9CB00ABA433C59C7AF87A67A8D5F74D235760"];
- };
-
- programs.helix.enable = true;
-
- programs.hyfetch.enable = true;
-
- programs.librewolf.enable = true;
- programs.librewolf.languagePacks = ["en" "zh-CN"];
- programs.librewolf.nativeMessagingHosts = [pkgs.kdePackages.plasma-browser-integration];
-
- programs.nushell.enable = true;
- programs.nushell.configFile.source = ./config.nu;
- home.shell.enableNushellIntegration = true;
-
- programs.pay-respects.enable = true;
-
- programs.wezterm.enable = true;
- programs.wezterm.extraConfig = builtins.readFile ./wezterm.lua;
-
- programs.zoxide.enable = true;
-
- # services.protonmail-bridge.enable = true;
- # services.protonmail-bridge.extraPackages = [pkgs.kdePackages.kwallet];
-
- i18n.inputMethod = {
- enable = true;
- type = "fcitx5";
- fcitx5 = {
- fcitx5-with-addons = pkgs.kdePackages.fcitx5-with-addons;
- addons = with pkgs; [
- (fcitx5-rime.override {
- rimeDataPkgs = [
- pkgs.rime-ice
- ];
- })
- ];
- settings.addons.classicui.globalSection = {
- Theme = "catppuccin-mocha-mauve";
- Font = "等距更纱黑体 SC 10";
- };
- waylandFrontend = true;
- };
- };
- xdg.dataFile."fcitx5/rime/default.custom.yaml".source = ./rime.yaml;
-
- catppuccin = {
- enable = true;
- flavor = "mocha";
- accent = "mauve";
- };
- catppuccin.cursors.enable = true;
- catppuccin.fcitx5.enableRounded = true;
- qt = {
- enable = true;
- style.name = "kvantum";
- platformTheme.name = "kvantum";
- };
- catppuccin.vesktop.enable = false;
-
- # This value determines the Home Manager release that your
- # configuration is compatible with. This helps avoid breakage
- # when a new Home Manager release introduces backwards
- # incompatible changes.
- #
- # You can update Home Manager without changing this value. See
- # the Home Manager release notes for a list of state version
- # changes in each release.
- home.stateVersion = "25.05";
-
- # Let Home Manager install and manage itself.
- programs.home-manager.enable = true;
+ imports = [
+ ./starship.nix
+ # ./vesktop.nix
+ ./zed-editor.nix
+ ];
+
+ # Home Manager needs a bit of information about you and the
+ # paths it should manage.
+ home.username = "tb148";
+ home.homeDirectory = "/home/tb148";
+ home.file.".face.icon".source = ./avatar.png;
+ home.file."${config.xdg.userDirs.pictures}/wallpaper.png".source = ./wallpaper.png;
+
+ xdg.userDirs = {
+ enable = true;
+ createDirectories = true;
+ desktop = "${config.home.homeDirectory}/desktop";
+ documents = "${config.home.homeDirectory}/document";
+ download = "${config.home.homeDirectory}/download";
+ music = "${config.home.homeDirectory}/music";
+ pictures = "${config.home.homeDirectory}/picture";
+ publicShare = "${config.home.homeDirectory}/public";
+ templates = "${config.home.homeDirectory}/template";
+ videos = "${config.home.homeDirectory}/video";
+ };
+
+ home.packages = with pkgs; [
+ cargo
+ (catppuccin-kde.override {
+ flavour = ["mocha"];
+ accents = ["mauve"];
+ winDecStyles = ["classic"];
+ })
+ (catppuccin-papirus-folders.override {
+ flavor = "mocha";
+ accent = "mauve";
+ })
+ catppuccinifier-cli
+ catppuccinifier-gui
+ clang
+ devenv
+ dprint
+ eslint
+ ffmpeg
+ fish
+ gtkwave
+ iosevka-bin
+ iverilog
+ jdk21
+ jetbrains.idea
+ jupyter
+ krita
+ libreoffice-qt-fresh
+ logisim
+ logisim-evolution
+ mars-mips
+ neocities
+ nerd-fonts.iosevka
+ nodejs
+ obs-studio
+ osu-lazer-bin
+ pnpm
+ ponysay
+ proton-pass
+ protonmail-bridge
+ qalculate-qt
+ rustc
+ sageWithDoc
+ sarasa-gothic
+ sequoia-sq
+ thunderbird
+ unrar
+ virtualenv
+ vlc
+ vokoscreen-ng
+ ];
+
+ programs.bat.enable = true;
+
+ programs.direnv.enable = true;
+
+ programs.fastfetch.enable = true;
+
+ programs.fd.enable = true;
+
+ programs.firefox.enable = true;
+ programs.firefox.languagePacks = [
+ "zh-CN"
+ "en-US"
+ ];
+
+ programs.git.enable = true;
+ programs.git.settings = {
+ init.defaultBranch = "trunk";
+ user.name = "Toni Brown";
+ user.email = "me@tb148.net";
+ };
+ programs.git.signing.signByDefault = true;
+ programs.git.signing.key = "53187AD414FDFBCC";
+
+ programs.gpg.enable = true;
+ programs.gpg.package = with pkgs;
+ symlinkJoin {
+ name = "gnupg-from-sequoia";
+ paths = [
+ gnupg
+ sequoia-chameleon-gnupg
+ ];
+ postBuild = ''
+ mv $out/bin/gpg $out/bin/gpg-g10code
+ mv $out/bin/gpgv $out/bin/gpgv-g10code
+ cp -P $out/bin/gpg-sq $out/bin/gpg
+ cp -P $out/bin/gpgv-sq $out/bin/gpgv
+ '';
+ };
+ services.gpg-agent = {
+ enable = true;
+ enableSshSupport = true;
+ pinentry.package = pkgs.pinentry-qt;
+ pinentry.program = "pinentry-qt";
+ sshKeys = ["F2F9CB00ABA433C59C7AF87A67A8D5F74D235760"];
+ };
+
+ programs.helix.enable = true;
+
+ programs.hyfetch.enable = true;
+
+ programs.librewolf.enable = true;
+ programs.librewolf.languagePacks = ["en" "zh-CN"];
+ programs.librewolf.nativeMessagingHosts = [pkgs.kdePackages.plasma-browser-integration];
+
+ programs.nushell.enable = true;
+ programs.nushell.configFile.source = ./config.nu;
+ home.shell.enableNushellIntegration = true;
+
+ programs.pay-respects.enable = true;
+
+ programs.wezterm.enable = true;
+ programs.wezterm.extraConfig = builtins.readFile ./wezterm.lua;
+
+ programs.zoxide.enable = true;
+
+ # services.protonmail-bridge.enable = true;
+ # services.protonmail-bridge.extraPackages = [pkgs.kdePackages.kwallet];
+
+ i18n.inputMethod = {
+ enable = true;
+ type = "fcitx5";
+ fcitx5 = {
+ fcitx5-with-addons = pkgs.kdePackages.fcitx5-with-addons;
+ addons = with pkgs; [
+ (fcitx5-rime.override {
+ rimeDataPkgs = [
+ pkgs.rime-ice
+ ];
+ })
+ ];
+ settings.addons.classicui.globalSection = {
+ Theme = "catppuccin-mocha-mauve";
+ Font = "等距更纱黑体 SC 10";
+ };
+ waylandFrontend = true;
+ };
+ };
+ xdg.dataFile."fcitx5/rime/default.custom.yaml".source = ./rime.yaml;
+
+ catppuccin = {
+ enable = true;
+ flavor = "mocha";
+ accent = "mauve";
+ };
+ catppuccin.cursors.enable = true;
+ catppuccin.fcitx5.enableRounded = true;
+ qt = {
+ enable = true;
+ style.name = "kvantum";
+ platformTheme.name = "kvantum";
+ };
+ catppuccin.vesktop.enable = false;
+
+ # This value determines the Home Manager release that your
+ # configuration is compatible with. This helps avoid breakage
+ # when a new Home Manager release introduces backwards
+ # incompatible changes.
+ #
+ # You can update Home Manager without changing this value. See
+ # the Home Manager release notes for a list of state version
+ # changes in each release.
+ home.stateVersion = "25.05";
+
+ # Let Home Manager install and manage itself.
+ programs.home-manager.enable = true;
}
diff --git a/wallpaper.png b/wallpaper.png
Binary files differ.
diff --git a/猫娘.png b/猫娘.png
Binary files differ.