mirror of
https://github.com/js0ny/dotfiles.git
synced 2026-03-22 18:52:43 +00:00
chore: antidots
This commit is contained in:
parent
9b49ff8bf7
commit
1d5c363220
6 changed files with 64 additions and 12 deletions
|
|
@ -90,9 +90,4 @@
|
|||
programs.nix-index.enable = true;
|
||||
programs.nix-index.symlinkToCacheHome = true;
|
||||
programs.nix-index-database.comma.enable = true;
|
||||
|
||||
home.sessionVariables = {
|
||||
PASSWORD_STORE_DIR = "${config.xdg.dataHome}/password-store";
|
||||
CODEX_HOME = "${config.xdg.configHome}/codex";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,14 +100,12 @@ in {
|
|||
gimp
|
||||
rustdesk
|
||||
remmina
|
||||
zotero
|
||||
feishin
|
||||
kicad
|
||||
blender
|
||||
onlyoffice-desktopeditors
|
||||
# wayland-bongocat
|
||||
kdePackages.qttools
|
||||
antigravity
|
||||
nur.repos.forkprince.helium-nightly
|
||||
obsidian
|
||||
file-roller
|
||||
|
|
|
|||
|
|
@ -1,14 +1,45 @@
|
|||
# https://wiki.archlinux.org/title/XDG_Base_Directory
|
||||
{config, ...}: let
|
||||
xdg-data = "${config.xdg.dataHome}";
|
||||
xdg-config = "${config.xdg.configHome}";
|
||||
xdg-cache = "${config.xdg.cacheHome}";
|
||||
xdg-state = "${config.xdg.stateHome}";
|
||||
home = "${config.home.homeDirectory}";
|
||||
user = "${config.home.username}";
|
||||
in {
|
||||
home.sessionVariables = {
|
||||
_JAVA_OPTIONS =
|
||||
"-Djava.util.prefs.userRoot='${xdg-config}/java'" # ~/.java/fonts
|
||||
+ "-Djavafx.cachedir='${xdg-cache}/openjfx'"; # ~/.openjfx
|
||||
CARGO_HOME = "${xdg-data}/cargo";
|
||||
XCOMPOSECACHE = "${xdg-cache}/X11/xcompose";
|
||||
# Sometimes required under Wayland
|
||||
XCOMPOSEFILE = "${xdg-config}/X11/XCompose";
|
||||
XCOMPOSECACHE = "${xdg-cache}/X11/XCompose";
|
||||
DOCKER_CONFIG = "${xdg-config}/docker";
|
||||
GNUPGHOME = "${xdg-data}/gnupg";
|
||||
GRADLE_USER_HOME = "${xdg-data}/gradle";
|
||||
_JAVA_OPTIONS = "-Djava.util.prefs.userRoot='${xdg-data}/java'";
|
||||
PASSWORD_STORE_DIR = "${xdg-data}/password-store";
|
||||
CODEX_HOME = "${xdg-config}/codex";
|
||||
KIVY_HOME = "${xdg-data}/kivy"; # python-kivy ~/.kivy
|
||||
LEIN_HOME = "${xdg-data}/lein"; # leiningen ~/.lein ~/.m2
|
||||
NPM_CONFIG_USERCONFIG = "${xdg-config}/npm/npmrc";
|
||||
NUGET_PACKAGES = "${xdg-data}/nuget/packages";
|
||||
OLLAMA_MODELS = "${xdg-data}/ollama/models"; # Only for models aka ~/.ollama/models
|
||||
RUSTUP_HOME = "${xdg-data}/rustup";
|
||||
W3M_DIR = "${xdg-state}/w3m";
|
||||
WAKATIME_HOME = "${xdg-config}/wakatime"; # ~/.wakatime
|
||||
WGETRC = "${xdg-config}/wget/wgetrc";
|
||||
};
|
||||
xdg.configFile."npm/npmrc".text = ''
|
||||
prefix=${xdg-data}/npm
|
||||
cache=${xdg-cache}/npm
|
||||
init-module=${xdg-config}/npm/config/npm-init.js
|
||||
logs-dir=${xdg-state}/npm/logs
|
||||
'';
|
||||
xdg.configFile."wget/wgetrc".text = ''
|
||||
hsts-file = ${xdg-state}/wget/wget-hsts
|
||||
'';
|
||||
systemd.user.tmpfiles.rules = [
|
||||
"d ${xdg-config}/wakatime 0700 ${user} users -"
|
||||
];
|
||||
}
|
||||
|
|
|
|||
28
nixcfgs/users/js0ny/programs/productivity/zotero.nix
Normal file
28
nixcfgs/users/js0ny/programs/productivity/zotero.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
profile = "js0ny";
|
||||
in {
|
||||
home.packages = with pkgs; [zotero];
|
||||
home.file = {
|
||||
".zotero/profiles.ini".text = ''
|
||||
[General]
|
||||
StartWithLastProfile=1
|
||||
Version=2
|
||||
|
||||
[Profile0]
|
||||
Default=1
|
||||
IsRelative=1
|
||||
Name=${profile}
|
||||
Path=${profile}
|
||||
'';
|
||||
# Antidots
|
||||
".zotero/${profile}/user.js".text = ''
|
||||
user_pref("extensions.zotero.dataDir", "${config.home.homeDirectory}/.local/share/Zotero");
|
||||
user_pref("extensions.zotero.export.quickCopy.setting", "bibliography=http://www.zotero.org/styles/ieee");
|
||||
user_pref("intl.locale.requested", "zh-CN");
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
...
|
||||
}: {
|
||||
systemd.user.tmpfiles.rules = [
|
||||
"d ${config.home.homeDirectory}/.sandbox/.per-app/wechat 0755 ${config.home.username} users -"
|
||||
"d ${config.home.homeDirectory}/.sandbox/.per-app/wechat 0700 ${config.home.username} users -"
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
wechat-uos-sandboxed
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@ in {
|
|||
# General config
|
||||
./default.nix
|
||||
|
||||
./programs/sandboxed.nix
|
||||
|
||||
# Use Gnome-keyring for GUI setup
|
||||
../../modules/home/gnome-keyrings.nix
|
||||
|
||||
|
|
@ -26,6 +24,7 @@ in {
|
|||
./packages/gaming.nix
|
||||
|
||||
./programs/antidots.nix
|
||||
./programs/sandboxed.nix
|
||||
|
||||
# Shell
|
||||
./programs/shell/bash.nix
|
||||
|
|
@ -71,6 +70,7 @@ in {
|
|||
./programs/productivity/sioyek
|
||||
./programs/productivity/thunderbird.nix
|
||||
./programs/productivity/zoom-us.nix
|
||||
./programs/productivity/zotero.nix
|
||||
|
||||
# Social
|
||||
./programs/social/discord.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue