Compare commits

...

4 commits

Author SHA1 Message Date
e9d20e9453
org-roam template for capturing from the browser
Some checks failed
/ test (push) Has been cancelled
2024-12-13 19:29:22 +01:00
6d01ccf480
Enable p-search 2024-12-13 19:29:11 +01:00
47b0ffed69
Add root password for sisko
Useful when connecting through the serial cable
2024-12-13 19:28:44 +01:00
6f9886d43f
Add p-search to Emacs packages 2024-12-13 19:28:33 +01:00
3 changed files with 30 additions and 2 deletions

View file

@ -435,6 +435,8 @@
(which-key-mode) (which-key-mode)
(which-key-setup-side-window-right)) (which-key-setup-side-window-right))
(use-package p-search)
(use-package magit (use-package magit
:bind (("C-c o g" . magit))) :bind (("C-c o g" . magit)))
@ -783,6 +785,12 @@ This is meant to be an helper to be called from the window manager."
) )
(use-package org-roam (use-package org-roam
:init
(require 'org)
(require 'org-roam)
(require 'org-roam-dailies)
(require 'org-protocol)
(require 'org-roam-protocol)
:custom :custom
(org-roam-v2-ack t) (org-roam-v2-ack t)
(org-roam-directory (file-truename "~/org")) (org-roam-directory (file-truename "~/org"))
@ -795,10 +803,18 @@ This is meant to be an helper to be called from the window manager."
("b" "Billable entry" entry ("b" "Billable entry" entry
"* TODO ${Entry} :billable:${Client}:\n:PROPERTIES:\n:SPENT: ${Spent}\n:END:\n%?" "* TODO ${Entry} :billable:${Client}:\n:PROPERTIES:\n:SPENT: ${Spent}\n:END:\n%?"
:target (file+head "%<%Y-%m-%d>.org" "#+TITLE: %<%Y-%m-%d>") :target (file+head "%<%Y-%m-%d>.org" "#+TITLE: %<%Y-%m-%d>")
:create-id t)) :create-id t)
)
)
(org-roam-capture-ref-templates
'(
("r" "Web entry" entry
"* ${Title} \n:PROPERTIES:\n:URL: ${ref}\n:END:\n %i"
:target (file+head "daily/%<%Y-%m-%d>.org" "#+TITLE: %<%Y-%m-%d>")
:create-id t)
)
) )
:config :config
(require 'org-roam-dailies)
(org-roam-db-autosync-mode) (org-roam-db-autosync-mode)
;; In order to automatically add an org id for some capture templates (using the :create-id keyword) ;; In order to automatically add an org id for some capture templates (using the :create-id keyword)

View file

@ -75,6 +75,8 @@
serviceConfig.restart = "always"; serviceConfig.restart = "always";
}; };
users.users.root.hashedPassword = "$y$j9T$mLSUS2hvJdN3s8f9Y3uLE0$sYQtJdn4DuSAZnDkhSsV0WIxNdpuqlH7ODNy1RfuRp4";
environment.persistence."/persist" = { environment.persistence."/persist" = {
hideMounts = true; hideMounts = true;
directories = [ directories = [

View file

@ -34,6 +34,16 @@ let
}; };
deps = [ ]; deps = [ ];
}; };
p-search = buildEmacsPackage {
name = "p-search";
src = pkgs.fetchFromGitHub {
owner = "zkry";
repo = "p-search";
rev = "3fcf06f862976433642d07d06ec911efc43d0189";
hash = "sha256-j4JEV+uHXK5Uf6/7D2AaSMKxBr3t59U+WNZzVsJ+gkc=";
};
deps = [ elpaPackages.heap ];
};
}; };
# *List* containing emacs packages from (M)ELPA # *List* containing emacs packages from (M)ELPA