summaryrefslogtreecommitdiff
path: root/nixos/hosts/box/box.nix
diff options
context:
space:
mode:
authorcaley <u65487754@gmail.com>2026-06-16 01:04:45 +0200
committerGitHub <noreply@github.com>2026-06-16 01:04:45 +0200
commit9f05823a2dab21aa57b74bfd62f7b1e9b284f37c (patch)
tree9209fa5b3fbbf4b8d8722c878cdc6ef121a307d5 /nixos/hosts/box/box.nix
parentc20db4a27a90b434057ddebf178da9f09c7938b5 (diff)
Update box.nix
Diffstat (limited to 'nixos/hosts/box/box.nix')
-rw-r--r--nixos/hosts/box/box.nix98
1 files changed, 86 insertions, 12 deletions
diff --git a/nixos/hosts/box/box.nix b/nixos/hosts/box/box.nix
index 8c23d27..011de21 100644
--- a/nixos/hosts/box/box.nix
+++ b/nixos/hosts/box/box.nix
@@ -152,19 +152,93 @@
};
};
-home.pointerCursor = {
- gtk.enable = true;
- x11.enable = true;
- package = pkgs.kdePackages.breeze;
- name = "breeze_cursors";
- size = 16;
-};
+ home.pointerCursor = {
+ gtk.enable = true;
+ x11.enable = true;
+ package = pkgs.kdePackages.breeze;
+ name = "breeze_cursors";
+ size = 16;
+ };
+
+ home.sessionVariables = {
+ XCURSOR_THEME = "breeze_cursors";
+ XCURSOR_SIZE = "16";
+ QT_CURSOR_SIZE = "16";
+ };
-home.sessionVariables = {
- XCURSOR_THEME = "breeze_cursors";
- XCURSOR_SIZE = "16";
- QT_CURSOR_SIZE = "16";
-};
+ home.file = {
+ ".documents/obsidian/.obsidian/app.json".text = builtins.toJSON {
+ readableLineLength = true;
+ foldHeading = true;
+ showLineNumber = true;
+ spellcheck = false;
+ vimMode = false;
+ newFileLocation = "current";
+ promptDelete = false;
+ };
+
+ ".documents/obsidian/.obsidian/appearance.json".text = builtins.toJSON {
+ accentColor = "#ffa8db";
+ cssTheme = "";
+ theme = "obsidian";
+ };
+
+ ".documents/obsidian/.obsidian/core-plugins.json".text = builtins.toJSON {
+ "file-explorer" = true;
+ "global-search" = true;
+ "switcher" = false;
+ "graph" = true;
+ "backlink" = false;
+ "canvas" = false;
+ "outgoing-link" = true;
+ "tag-pane" = true;
+ "footnotes" = false;
+ "properties" = false;
+ "page-preview" = true;
+ "daily-notes" = true;
+ "templates" = false;
+ "note-composer" = false;
+ "command-palette" = false;
+ "slash-command" = false;
+ "editor-status" = true;
+ "bookmarks" = false;
+ "markdown-importer" = false;
+ "zk-prefixer" = false;
+ "random-note" = false;
+ "outline" = true;
+ "word-count" = true;
+ "slides" = false;
+ "audio-recorder" = false;
+ "workspaces" = false;
+ "file-recovery" = true;
+ "publish" = false;
+ "sync" = false;
+ "bases" = false;
+ "webviewer" = true;
+ };
+
+ systemd.user.services.obsidian = {
+ Unit.Description = "obsidian git sync";
+ Service = {
+ ExecStart = "${pkgs.writeShellScript "obsidian" ''
+ while true; do
+ cd /home/cat/.documents/obsidian || exit 1
+ if [ ! -d .git ]; then
+ exit 1
+ fi
+ git add .
+ if ! git diff-index --quiet HEAD; then
+ git commit -m "sync $(date +'%Y-%m-%d %H:%M:%S')"
+ git pull --rebase origin main
+ git push origin main
+ fi
+ sleep 60
+ done
+ ''}";
+ Restart = "always";
+ };
+ Install.WantedBy = [ "default.target" ];
+ };
programs.home-manager.enable = true;
}