summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2025-09-04 15:48:44 -0700
committerPreston Pan <ret2pop@gmail.com>2025-09-04 15:48:44 -0700
commitba22dd89c67162aa26c7f85c389314ef1f079ace (patch)
tree05d7d4368ab3c1d7fdfc833f2d80514b541fa89e
parent4753c566cfc42f3af2bc6fac1717b88c4f32bcec (diff)
last commit before modifying image
-rw-r--r--agenda.org17
-rw-r--r--config/emacs.el43
-rw-r--r--config/emacs.org43
-rw-r--r--config/nix.org12
-rw-r--r--journal/20250826.org11
-rw-r--r--nix/flake.lock109
-rw-r--r--nix/flake.nix10
-rw-r--r--nix/modules/home/default.nix1
-rw-r--r--nix/modules/home/zsh.nix1
9 files changed, 163 insertions, 84 deletions
diff --git a/agenda.org b/agenda.org
index 1182166..2704851 100644
--- a/agenda.org
+++ b/agenda.org
@@ -67,10 +67,12 @@ SCHEDULED: <2025-08-09 Sat>
These are some habits I want to track. They are repeated according to a calendar schedule in
general.
** TODO Supplements
-SCHEDULED: <2025-03-22 Sat .+1d>
+SCHEDULED: <2025-08-28 Thu .+1d>
:PROPERTIES:
-:LAST_REPEAT: [2025-03-21 Fri 04:48]
+:LAST_REPEAT: [2025-08-27 Wed 21:46]
:END:
+- State "DONE" from "TODO" [2025-08-27 Wed 21:46]
+- State "DONE" from "TODO" [2025-08-25 Mon 21:17]
- State "DONE" from "TODO" [2025-03-21 Fri 04:48]
- State "DONE" from "TODO" [2025-03-13 Thu 09:52]
- State "DONE" from "TODO" [2025-03-11 Tue 00:34]
@@ -81,18 +83,21 @@ Current stack:
- Vitamin D3
- EPA/DHA
** TODO Pushups
-SCHEDULED: <2025-03-22 Sat .+1d>
+SCHEDULED: <2025-08-28 Thu .+1d>
:PROPERTIES:
-:LAST_REPEAT: [2025-03-21 Fri 04:49]
+:LAST_REPEAT: [2025-08-27 Wed 21:46]
:END:
+- State "DONE" from "TODO" [2025-08-27 Wed 21:46]
+- State "DONE" from "TODO" [2025-08-25 Mon 21:16]
- State "DONE" from "TODO" [2025-03-21 Fri 04:49]
- State "DONE" from "TODO" [2025-03-11 Tue 00:16]
I want to be healthy.
** TODO Run
-SCHEDULED: <2025-06-27 Fri .+1d>
+SCHEDULED: <2025-08-26 Tue .+1d>
:PROPERTIES:
-:LAST_REPEAT: [2025-06-26 Thu 23:22]
+:LAST_REPEAT: [2025-08-25 Mon 21:17]
:END:
+- State "DONE" from "TODO" [2025-08-25 Mon 21:17]
- State "DONE" from "TODO" [2025-06-26 Thu 23:22]
I want to be able to run or bike every day so that I get my exercise in.
** TODO Stretch
diff --git a/config/emacs.el b/config/emacs.el
index ddde018..76948b5 100644
--- a/config/emacs.el
+++ b/config/emacs.el
@@ -4,6 +4,11 @@
(use-package emacs
:custom
+ ;; global defaults
+ (setq-default indent-tabs-mode nil) ;; no real tabs, only spaces
+ (setq-default tab-width 2) ;; just in case, make a "tab" show as 4 spaces
+ (setq-default standard-indent 2) ;; base indentation
+
;; Startup errors
(warning-minimum-level :emergency "Supress emacs warnings")
(confirm-kill-processes nil "Don't ask to quit")
@@ -254,22 +259,32 @@
:after (org)
:hook (org-mode . (lambda () (org-superstar-mode 1))))
-(use-package eglot
- :hook
- (prog-mode . eglot-ensure)
- (nix-mode . eglot-ensure)
- :config
- (add-to-list 'eglot-server-programs '(nix-mode . ("nil"))))
+;; (use-package eglot
+ ;; :hook
+ ;; (prog-mode . eglot-ensure)
+ ;; (nix-mode . eglot-ensure)
+ ;; :config
+ ;; (add-to-list 'eglot-server-programs '(nix-mode . ("nil"))))
+
+ (use-package lsp
+ :hook
+ (prog-mode . lsp))
-(use-package lsp
- :hook
- (prog-mode . lsp))
+(with-eval-after-load 'lsp-mode
+ (setq lsp-typescript-format-enable t
+ lsp-typescript-indent-size 4
+ lsp-typescript-tab-size 4
+ lsp-typescript-indent-style "spaces"))
+
+(use-package editorconfig
+ :config
+ (editorconfig-mode 1))
-(use-package flycheck
- :config (global-flycheck-mode))
+ (use-package flycheck
+ :config (global-flycheck-mode))
-(use-package platformio-mode
- :hook (prog-mode . platformio-conditionally-enable))
+ (use-package platformio-mode
+:hook (prog-mode . platformio-conditionally-enable))
(use-package irony-mode
:hook (
@@ -409,7 +424,7 @@
"m l" '(lyrics-fetcher-show-lyrics :wk "Music lyrics")
"o p" '(treemacs :wk "Project Drawer")
"o P" '(treemacs-projectile :wk "Import Projectile project to treemacs")
- "f f" '(eglot-format :wk "Format code buffer")
+ ;; "f f" '(eglot-format :wk "Format code buffer")
"i p c" '(prestonpan :wk "Connect to my IRC server")
"i l c" '(liberachat :wk "Connect to libera chat server")
"i e c" '(efnet :wk "Connect to efnet chat server")
diff --git a/config/emacs.org b/config/emacs.org
index ca040d4..dab81d6 100644
--- a/config/emacs.org
+++ b/config/emacs.org
@@ -25,6 +25,11 @@ Emacs is self documenting, after all!
#+begin_src emacs-lisp
(use-package emacs
:custom
+ ;; global defaults
+ (setq-default indent-tabs-mode nil) ;; no real tabs, only spaces
+ (setq-default tab-width 2) ;; just in case, make a "tab" show as 4 spaces
+ (setq-default standard-indent 2) ;; base indentation
+
;; Startup errors
(warning-minimum-level :emergency "Supress emacs warnings")
(confirm-kill-processes nil "Don't ask to quit")
@@ -332,22 +337,32 @@ Org superstar adds those nice looking utf-8 bullets:
** LSP
We set up eglot, the LSP manager for emacs, now built in:
#+begin_src emacs-lisp
- (use-package eglot
- :hook
- (prog-mode . eglot-ensure)
- (nix-mode . eglot-ensure)
- :config
- (add-to-list 'eglot-server-programs '(nix-mode . ("nil"))))
+ ;; (use-package eglot
+ ;; :hook
+ ;; (prog-mode . eglot-ensure)
+ ;; (nix-mode . eglot-ensure)
+ ;; :config
+ ;; (add-to-list 'eglot-server-programs '(nix-mode . ("nil"))))
+
+ (use-package lsp
+ :hook
+ (prog-mode . lsp))
- (use-package lsp
- :hook
- (prog-mode . lsp))
+ (with-eval-after-load 'lsp-mode
+ (setq lsp-typescript-format-enable t
+ lsp-typescript-indent-size 4
+ lsp-typescript-tab-size 4
+ lsp-typescript-indent-style "spaces"))
+
+ (use-package editorconfig
+ :config
+ (editorconfig-mode 1))
- (use-package flycheck
- :config (global-flycheck-mode))
+ (use-package flycheck
+ :config (global-flycheck-mode))
- (use-package platformio-mode
- :hook (prog-mode . platformio-conditionally-enable))
+ (use-package platformio-mode
+ :hook (prog-mode . platformio-conditionally-enable))
#+end_src
*** C/C++
Specific configuration for C (I also use the clangd lsp):
@@ -514,7 +529,7 @@ emacs keybindings.
"m l" '(lyrics-fetcher-show-lyrics :wk "Music lyrics")
"o p" '(treemacs :wk "Project Drawer")
"o P" '(treemacs-projectile :wk "Import Projectile project to treemacs")
- "f f" '(eglot-format :wk "Format code buffer")
+ ;; "f f" '(eglot-format :wk "Format code buffer")
"i p c" '(prestonpan :wk "Connect to my IRC server")
"i l c" '(liberachat :wk "Connect to libera chat server")
"i e c" '(efnet :wk "Connect to efnet chat server")
diff --git a/config/nix.org b/config/nix.org
index 125547a..13cd687 100644
--- a/config/nix.org
+++ b/config/nix.org
@@ -32,6 +32,9 @@ so that adding new configurations that add modifications is made simple.
url = "github:oddlama/nix-topology";
inputs.nixpkgs.follows = "nixpkgs";
};
+ deep-research = {
+ url = "github:ret2pop/ollama-deep-researcher";
+ };
home-manager = {
url = "github:nix-community/home-manager/release-25.05";
inputs.nixpkgs.follows = "nixpkgs";
@@ -50,7 +53,7 @@ so that adding new configurations that add modifications is made simple.
};
};
- outputs = { self, nixpkgs, home-manager, nur, disko, lanzaboote, sops-nix, nix-topology, nixos-dns, ... }@attrs:
+ outputs = { self, nixpkgs, home-manager, nur, disko, lanzaboote, sops-nix, nix-topology, nixos-dns, deep-research, ... }@attrs:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
@@ -69,6 +72,11 @@ so that adding new configurations that add modifications is made simple.
{ networking.hostName = "${hostname}"; }
nix-topology.nixosModules.default
] else [
+ {
+ environment.systemPackages = with nixpkgs.lib; [
+ deep-research.packages.${system}.deep-research
+ ];
+ }
nix-topology.nixosModules.default
lanzaboote.nixosModules.lanzaboote
disko.nixosModules.disko
@@ -1516,6 +1524,7 @@ I have many imports that we'll go through next.
kdePackages.kdenlive
kicad
murmur
+ silver-searcher
]) else []);
monorepo.profiles = {
@@ -2891,6 +2900,7 @@ standard.
export EXTRA_CCFLAGS="-I/usr/include"
source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
export QT_QPA_PLATFORM="wayland"
+ export OLLAMA_MODEL="qwen3:14b"
'';
localVariables = {
diff --git a/journal/20250826.org b/journal/20250826.org
new file mode 100644
index 0000000..3347956
--- /dev/null
+++ b/journal/20250826.org
@@ -0,0 +1,11 @@
+#+TITLE: Daily Journal
+#+STARTUP: showeverything
+#+DESCRIPTION: My daily journal entry
+#+AUTHOR: Preston Pan
+#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="../style.css" />
+#+html_head: <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
+#+html_head: <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
+#+options: broken-links:t
+* Tuesday, 26 August 2025
+** 03:10
+I'm doing some topology, and I really hate it, but it builds character. I've decided to start to become more consistent.
diff --git a/nix/flake.lock b/nix/flake.lock
index 42dba61..393915b 100644
--- a/nix/flake.lock
+++ b/nix/flake.lock
@@ -21,6 +21,24 @@
"type": "github"
}
},
+ "deep-research": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ },
+ "locked": {
+ "lastModified": 1755738911,
+ "narHash": "sha256-BobMSFfhK8GprfN6V+BedMj6d1v/pKce6sqiETHiv48=",
+ "owner": "ret2pop",
+ "repo": "ollama-deep-researcher",
+ "rev": "678a3ef8e8d8ded2aab9288fd7396579a13aec46",
+ "type": "github"
+ },
+ "original": {
+ "owner": "ret2pop",
+ "repo": "ollama-deep-researcher",
+ "type": "github"
+ }
+ },
"devshell": {
"inputs": {
"nixpkgs": [
@@ -49,11 +67,11 @@
]
},
"locked": {
- "lastModified": 1750040002,
- "narHash": "sha256-KrC9iOVYIn6ukpVlHbqSA4hYCZ6oDyJKrcLqv4c5v84=",
+ "lastModified": 1755519972,
+ "narHash": "sha256-bU4nqi3IpsUZJeyS8Jk85ytlX61i4b0KCxXX9YcOgVc=",
"owner": "nix-community",
"repo": "disko",
- "rev": "7f1857b31522062a6a00f88cbccf86b43acceed1",
+ "rev": "4073ff2f481f9ef3501678ff479ed81402caae6d",
"type": "github"
},
"original": {
@@ -239,11 +257,11 @@
]
},
"locked": {
- "lastModified": 1749154018,
- "narHash": "sha256-gjN3j7joRvT3a8Zgcylnd4NFsnXeDBumqiu4HmY1RIg=",
+ "lastModified": 1753592768,
+ "narHash": "sha256-oV695RvbAE4+R9pcsT9shmp6zE/+IZe6evHWX63f2Qg=",
"owner": "nix-community",
"repo": "home-manager",
- "rev": "7aae0ee71a17b19708b93b3ed448a1a0952bf111",
+ "rev": "fc3add429f21450359369af74c2375cb34a2d204",
"type": "github"
},
"original": {
@@ -290,11 +308,11 @@
"pre-commit-hooks": "pre-commit-hooks"
},
"locked": {
- "lastModified": 1744142264,
- "narHash": "sha256-h5KyodobZm8dx/HSNN+basgdmjxrQxudjrss4gAQpZk=",
+ "lastModified": 1752093877,
+ "narHash": "sha256-P0TySh6sQl1EhfxjW9ZqGxEyUBSsEpdnchOe1QB0pLA=",
"owner": "oddlama",
"repo": "nix-topology",
- "rev": "f49121cbbf4a86c560638ade406d99ee58deb7aa",
+ "rev": "6a536c4b686ee4bcf07a7b0f8b823584560e2633",
"type": "github"
},
"original": {
@@ -328,15 +346,15 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1750134718,
- "narHash": "sha256-v263g4GbxXv87hMXMCpjkIxd/viIF7p3JpJrwgKdNiI=",
- "owner": "nixos",
+ "lastModified": 1755615617,
+ "narHash": "sha256-HMwfAJBdrr8wXAkbGhtcby1zGFvs+StOp19xNsbqdOg=",
+ "owner": "NixOS",
"repo": "nixpkgs",
- "rev": "9e83b64f727c88a7711a2c463a7b16eedb69a84c",
+ "rev": "20075955deac2583bb12f07151c2df830ef346b4",
"type": "github"
},
"original": {
- "owner": "nixos",
+ "owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
@@ -360,11 +378,11 @@
},
"nixpkgs_2": {
"locked": {
- "lastModified": 1750134718,
- "narHash": "sha256-v263g4GbxXv87hMXMCpjkIxd/viIF7p3JpJrwgKdNiI=",
+ "lastModified": 1755186698,
+ "narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=",
"owner": "nixos",
"repo": "nixpkgs",
- "rev": "9e83b64f727c88a7711a2c463a7b16eedb69a84c",
+ "rev": "fbcf476f790d8a217c3eab4e12033dc4a0f6d23c",
"type": "github"
},
"original": {
@@ -376,6 +394,22 @@
},
"nixpkgs_3": {
"locked": {
+ "lastModified": 1755186698,
+ "narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "fbcf476f790d8a217c3eab4e12033dc4a0f6d23c",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "nixpkgs_4": {
+ "locked": {
"lastModified": 1744868846,
"narHash": "sha256-5RJTdUHDmj12Qsv7XOhuospjAjATNiTMElplWnJE9Hs=",
"owner": "NixOS",
@@ -393,15 +427,14 @@
"nur": {
"inputs": {
"flake-parts": "flake-parts_2",
- "nixpkgs": "nixpkgs_2",
- "treefmt-nix": "treefmt-nix_2"
+ "nixpkgs": "nixpkgs_3"
},
"locked": {
- "lastModified": 1750305956,
- "narHash": "sha256-o3Y5v3KmqKOEudWqBKX0utCOMvn/+hbEhWEZklS1Ej0=",
+ "lastModified": 1755566258,
+ "narHash": "sha256-bLDKNtjyDjMOK6w2dsRRRPKr2GzcKOdIjsiJd2FbZuA=",
"owner": "nix-community",
"repo": "NUR",
- "rev": "45c311c54cf6b948161b056f07b3e66515273315",
+ "rev": "b54ab372b6c2831be68f7302142bdfae08204756",
"type": "github"
},
"original": {
@@ -466,12 +499,13 @@
},
"root": {
"inputs": {
+ "deep-research": "deep-research",
"disko": "disko",
"home-manager": "home-manager",
"lanzaboote": "lanzaboote",
"nix-topology": "nix-topology",
"nixos-dns": "nixos-dns",
- "nixpkgs": "nixpkgs",
+ "nixpkgs": "nixpkgs_2",
"nur": "nur",
"scripts": "scripts",
"sops-nix": "sops-nix",
@@ -521,14 +555,14 @@
},
"sops-nix": {
"inputs": {
- "nixpkgs": "nixpkgs_3"
+ "nixpkgs": "nixpkgs_4"
},
"locked": {
- "lastModified": 1750119275,
- "narHash": "sha256-Rr7Pooz9zQbhdVxux16h7URa6mA80Pb/G07T4lHvh0M=",
+ "lastModified": 1754988908,
+ "narHash": "sha256-t+voe2961vCgrzPFtZxha0/kmFSHFobzF00sT8p9h0U=",
"owner": "Mic92",
"repo": "sops-nix",
- "rev": "77c423a03b9b2b79709ea2cb63336312e78b72e2",
+ "rev": "3223c7a92724b5d804e9988c6b447a0d09017d48",
"type": "github"
},
"original": {
@@ -617,27 +651,6 @@
"type": "github"
}
},
- "treefmt-nix_2": {
- "inputs": {
- "nixpkgs": [
- "nur",
- "nixpkgs"
- ]
- },
- "locked": {
- "lastModified": 1733222881,
- "narHash": "sha256-JIPcz1PrpXUCbaccEnrcUS8jjEb/1vJbZz5KkobyFdM=",
- "owner": "numtide",
- "repo": "treefmt-nix",
- "rev": "49717b5af6f80172275d47a418c9719a31a78b53",
- "type": "github"
- },
- "original": {
- "owner": "numtide",
- "repo": "treefmt-nix",
- "type": "github"
- }
- },
"wallpapers": {
"locked": {
"lastModified": 1710138216,
diff --git a/nix/flake.nix b/nix/flake.nix
index c2e1c0f..be9089f 100644
--- a/nix/flake.nix
+++ b/nix/flake.nix
@@ -12,6 +12,9 @@
url = "github:oddlama/nix-topology";
inputs.nixpkgs.follows = "nixpkgs";
};
+ deep-research = {
+ url = "github:ret2pop/ollama-deep-researcher";
+ };
home-manager = {
url = "github:nix-community/home-manager/release-25.05";
inputs.nixpkgs.follows = "nixpkgs";
@@ -30,7 +33,7 @@
};
};
- outputs = { self, nixpkgs, home-manager, nur, disko, lanzaboote, sops-nix, nix-topology, nixos-dns, ... }@attrs:
+ outputs = { self, nixpkgs, home-manager, nur, disko, lanzaboote, sops-nix, nix-topology, nixos-dns, deep-research, ... }@attrs:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
@@ -49,6 +52,11 @@
{ networking.hostName = "${hostname}"; }
nix-topology.nixosModules.default
] else [
+ {
+ environment.systemPackages = with nixpkgs.lib; [
+ deep-research.packages.${system}.deep-research
+ ];
+ }
nix-topology.nixosModules.default
lanzaboote.nixosModules.lanzaboote
disko.nixosModules.disko
diff --git a/nix/modules/home/default.nix b/nix/modules/home/default.nix
index bebd670..614373b 100644
--- a/nix/modules/home/default.nix
+++ b/nix/modules/home/default.nix
@@ -170,6 +170,7 @@
kdePackages.kdenlive
kicad
murmur
+ silver-searcher
]) else []);
monorepo.profiles = {
diff --git a/nix/modules/home/zsh.nix b/nix/modules/home/zsh.nix
index ef0f5fd..31c7680 100644
--- a/nix/modules/home/zsh.nix
+++ b/nix/modules/home/zsh.nix
@@ -7,6 +7,7 @@
export EXTRA_CCFLAGS="-I/usr/include"
source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
export QT_QPA_PLATFORM="wayland"
+ export OLLAMA_MODEL="qwen3:14b"
'';
localVariables = {