mirror of
https://github.com/js0ny/dotfiles.git
synced 2026-03-22 10:42:42 +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.enable = true;
|
||||||
programs.nix-index.symlinkToCacheHome = true;
|
programs.nix-index.symlinkToCacheHome = true;
|
||||||
programs.nix-index-database.comma.enable = 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
|
gimp
|
||||||
rustdesk
|
rustdesk
|
||||||
remmina
|
remmina
|
||||||
zotero
|
|
||||||
feishin
|
feishin
|
||||||
kicad
|
kicad
|
||||||
blender
|
blender
|
||||||
onlyoffice-desktopeditors
|
onlyoffice-desktopeditors
|
||||||
# wayland-bongocat
|
# wayland-bongocat
|
||||||
kdePackages.qttools
|
kdePackages.qttools
|
||||||
antigravity
|
|
||||||
nur.repos.forkprince.helium-nightly
|
nur.repos.forkprince.helium-nightly
|
||||||
obsidian
|
obsidian
|
||||||
file-roller
|
file-roller
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,45 @@
|
||||||
|
# https://wiki.archlinux.org/title/XDG_Base_Directory
|
||||||
{config, ...}: let
|
{config, ...}: let
|
||||||
xdg-data = "${config.xdg.dataHome}";
|
xdg-data = "${config.xdg.dataHome}";
|
||||||
xdg-config = "${config.xdg.configHome}";
|
xdg-config = "${config.xdg.configHome}";
|
||||||
xdg-cache = "${config.xdg.cacheHome}";
|
xdg-cache = "${config.xdg.cacheHome}";
|
||||||
|
xdg-state = "${config.xdg.stateHome}";
|
||||||
|
home = "${config.home.homeDirectory}";
|
||||||
|
user = "${config.home.username}";
|
||||||
in {
|
in {
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
|
_JAVA_OPTIONS =
|
||||||
|
"-Djava.util.prefs.userRoot='${xdg-config}/java'" # ~/.java/fonts
|
||||||
|
+ "-Djavafx.cachedir='${xdg-cache}/openjfx'"; # ~/.openjfx
|
||||||
CARGO_HOME = "${xdg-data}/cargo";
|
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";
|
DOCKER_CONFIG = "${xdg-config}/docker";
|
||||||
GNUPGHOME = "${xdg-data}/gnupg";
|
GNUPGHOME = "${xdg-data}/gnupg";
|
||||||
GRADLE_USER_HOME = "${xdg-data}/gradle";
|
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 = [
|
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; [
|
home.packages = with pkgs; [
|
||||||
wechat-uos-sandboxed
|
wechat-uos-sandboxed
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,6 @@ in {
|
||||||
# General config
|
# General config
|
||||||
./default.nix
|
./default.nix
|
||||||
|
|
||||||
./programs/sandboxed.nix
|
|
||||||
|
|
||||||
# Use Gnome-keyring for GUI setup
|
# Use Gnome-keyring for GUI setup
|
||||||
../../modules/home/gnome-keyrings.nix
|
../../modules/home/gnome-keyrings.nix
|
||||||
|
|
||||||
|
|
@ -26,6 +24,7 @@ in {
|
||||||
./packages/gaming.nix
|
./packages/gaming.nix
|
||||||
|
|
||||||
./programs/antidots.nix
|
./programs/antidots.nix
|
||||||
|
./programs/sandboxed.nix
|
||||||
|
|
||||||
# Shell
|
# Shell
|
||||||
./programs/shell/bash.nix
|
./programs/shell/bash.nix
|
||||||
|
|
@ -71,6 +70,7 @@ in {
|
||||||
./programs/productivity/sioyek
|
./programs/productivity/sioyek
|
||||||
./programs/productivity/thunderbird.nix
|
./programs/productivity/thunderbird.nix
|
||||||
./programs/productivity/zoom-us.nix
|
./programs/productivity/zoom-us.nix
|
||||||
|
./programs/productivity/zotero.nix
|
||||||
|
|
||||||
# Social
|
# Social
|
||||||
./programs/social/discord.nix
|
./programs/social/discord.nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue