mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-18 22:55:52 +05:30
Compare commits
6 commits
86d3fe5fea
...
d6dc86d4c8
Author | SHA1 | Date | |
---|---|---|---|
d6dc86d4c8 | |||
46257ff011 | |||
f574841f13 | |||
8302bce90d | |||
e97051872a | |||
23a8f9ad3a |
42
flake.lock
42
flake.lock
|
@ -117,11 +117,11 @@
|
|||
"blocklist-hosts": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1719001847,
|
||||
"narHash": "sha256-dt/UEjcTSxkmsC+zZvGS2+Y6c2CFjo6Hn3WAhokFAkk=",
|
||||
"lastModified": 1719456570,
|
||||
"narHash": "sha256-FS9+w+9QPBd6hCtX7C5x/xm4nGCA0lOtYgjefkQNbbg=",
|
||||
"owner": "StevenBlack",
|
||||
"repo": "hosts",
|
||||
"rev": "05a9ae6098bb2f09eb1d35cb440a086a9a85d39c",
|
||||
"rev": "0f8be09978187ba0e4eab2a9e0dcde88f358f1dc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -472,11 +472,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1719037157,
|
||||
"narHash": "sha256-aOKd8+mhBsLQChCu1mn/W5ww79ta5cXVE59aJFrifM8=",
|
||||
"lastModified": 1719677234,
|
||||
"narHash": "sha256-qO9WZsj/0E6zcK4Ht1y/iJ8XfwbBzq7xdqhBh44OP/M=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "cd886711998fe5d9ff7979fdd4b4cbd17b1f1511",
|
||||
"rev": "36317d4d38887f7629876b0e43c8d9593c5cc48d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -896,11 +896,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1719075281,
|
||||
"narHash": "sha256-CyyxvOwFf12I91PBWz43iGT1kjsf5oi6ax7CrvaMyAo=",
|
||||
"lastModified": 1719506693,
|
||||
"narHash": "sha256-C8e9S7RzshSdHB7L+v9I51af1gDM5unhJ2xO1ywxNH8=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "a71e967ef3694799d0c418c98332f7ff4cc5f6af",
|
||||
"rev": "b2852eb9365c6de48ffb0dc2c9562591f652242a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -943,11 +943,11 @@
|
|||
},
|
||||
"nixpkgs-stable": {
|
||||
"locked": {
|
||||
"lastModified": 1718811006,
|
||||
"narHash": "sha256-0Y8IrGhRmBmT7HHXlxxepg2t8j1X90++qRN3lukGaIk=",
|
||||
"lastModified": 1719234068,
|
||||
"narHash": "sha256-1AjSIedDC/aERt24KsCUftLpVppW61S7awfjGe7bMio=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "03d771e513ce90147b65fe922d87d3a0356fc125",
|
||||
"rev": "90bd1b26e23760742fdcb6152369919098f05417",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1172,11 +1172,11 @@
|
|||
"org-sliced-images": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1718918908,
|
||||
"narHash": "sha256-Pcz+e26qVsZMNEBbzjdrOUUib9ozLG1gY6Ry/l8e+qM=",
|
||||
"lastModified": 1719203338,
|
||||
"narHash": "sha256-wi8G6AHWWbAFBPGsZSSOVIOBqrzfdOhzgTfUNe4fAEc=",
|
||||
"owner": "jcfk",
|
||||
"repo": "org-sliced-images",
|
||||
"rev": "43d4f4147ed4cd670aab8a2d9fdfe3c0edd289c9",
|
||||
"rev": "b98b88a55eff07e998e7789e0bf7307dd71db050",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1351,11 +1351,11 @@
|
|||
"nixpkgs": "nixpkgs_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1719109180,
|
||||
"narHash": "sha256-96dwGCV2yQxDozDATqbsM3YU0ft3Isw3cwVDO/eNCv8=",
|
||||
"lastModified": 1719627476,
|
||||
"narHash": "sha256-LBfULF+2sCaWmkjmj1LkkGrAS/E9ZdXU1A5wWKjt9p0=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "5fc5f3a0d7eabf7db86851e6423f9d7fbceaf89d",
|
||||
"rev": "5be53be9e5c766fc72fc5d65ba8a566cc0c3217f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1411,11 +1411,11 @@
|
|||
"nixpkgs": "nixpkgs_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1719152448,
|
||||
"narHash": "sha256-Acbi1Crd+UEbpPW8IR0ZGRKV+JCnMXDS2cglFQJvRPM=",
|
||||
"lastModified": 1719525570,
|
||||
"narHash": "sha256-xSO/H67GAHEW0siD2PHoO/e97MbROL3r3s5SpF6A6Dc=",
|
||||
"owner": "danth",
|
||||
"repo": "stylix",
|
||||
"rev": "0fc4e9f1449a9dce4be7a1ecedd97949da591181",
|
||||
"rev": "1ff9d37d27377bfe8994c24a8d6c6c1734ffa116",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -204,6 +204,10 @@
|
|||
;; For camelCase
|
||||
(global-subword-mode 1)
|
||||
|
||||
;; ripgrep as grep
|
||||
(setq grep-command "rg -nS --no-heading "
|
||||
grep-use-null-device nil)
|
||||
|
||||
;; Mini-frames ;; cool but kinda suboptimal atm
|
||||
;(add-load-path! "~/.emacs.d/mini-frame")
|
||||
;(require 'mini-frame)
|
||||
|
@ -699,6 +703,8 @@ If the path from LINK does not exist, nil is returned."
|
|||
org-roam-db-choice)
|
||||
)
|
||||
|
||||
(setq org-roam-list-files-commands '(rg))
|
||||
|
||||
(setq full-org-roam-db-list nil)
|
||||
|
||||
(setq full-org-roam-db-list (directory-files "~/Org" t "\\.[p,s]$"))
|
||||
|
@ -882,27 +888,18 @@ If the path from LINK does not exist, nil is returned."
|
|||
)
|
||||
)
|
||||
|
||||
(defun org-roam-append-notes-to-agenda (tag-name db)
|
||||
(org-roam-switch-db db t)
|
||||
; (org-roam-dailies-apply-old-todos-tags-to-all)
|
||||
(setq org-agenda-files (append org-agenda-files (org-roam-list-notes-by-tag "todos")))
|
||||
)
|
||||
|
||||
(defun org-roam-append-ids-to-org-id-files (db)
|
||||
(org-roam-switch-db db t)
|
||||
(setq org-id-files (append org-id-files (org-roam-list-files)))
|
||||
)
|
||||
|
||||
;; Refreshing org roam agenda
|
||||
(defun org-roam-refresh-agenda-list ()
|
||||
(interactive)
|
||||
(setq prev-org-roam-db-choice org-roam-db-choice)
|
||||
(setq org-agenda-files '())
|
||||
(setq org-id-files '())
|
||||
(dolist (DB full-org-roam-db-list-pretty)
|
||||
(org-roam-append-notes-to-agenda "todos" DB)
|
||||
(org-roam-append-ids-to-org-id-files DB)
|
||||
)
|
||||
(setq org-roam-directory (file-truename "~/Org")
|
||||
org-roam-db-location (file-truename "~/Org/org-roam.db")
|
||||
org-directory (file-truename "~/Org/"))
|
||||
(org-roam-db-sync)
|
||||
(setq org-agenda-files (org-roam-list-notes-by-tag "todos"))
|
||||
(setq org-id-files (org-roam-list-files))
|
||||
(setq org-agenda-files (-uniq org-agenda-files))
|
||||
(org-roam-switch-db prev-org-roam-db-choice 1)
|
||||
)
|
||||
|
|
|
@ -41,6 +41,8 @@ in
|
|||
# End block
|
||||
};
|
||||
|
||||
services.emacs.enable = true;
|
||||
|
||||
home.file.".emacs.d/themes/doom-stylix-theme.el".source = config.lib.stylix.colors {
|
||||
template = builtins.readFile ./themes/doom-stylix-theme.el.mustache;
|
||||
extension = ".el";
|
||||
|
|
|
@ -267,6 +267,10 @@ Doom Emacs is traditionally installed by cloning the repository ([[https://githu
|
|||
;; For camelCase
|
||||
(global-subword-mode 1)
|
||||
|
||||
;; ripgrep as grep
|
||||
(setq grep-command "rg -nS --no-heading "
|
||||
grep-use-null-device nil)
|
||||
|
||||
;; Mini-frames ;; cool but kinda suboptimal atm
|
||||
;(add-load-path! "~/.emacs.d/mini-frame")
|
||||
;(require 'mini-frame)
|
||||
|
@ -835,6 +839,8 @@ exit
|
|||
org-roam-db-choice)
|
||||
)
|
||||
|
||||
(setq org-roam-list-files-commands '(rg))
|
||||
|
||||
#+END_SRC
|
||||
*** Multi Org Roam Configuration
|
||||
#+BEGIN_SRC emacs-lisp :tangle config.el
|
||||
|
@ -1027,27 +1033,18 @@ exit
|
|||
)
|
||||
)
|
||||
|
||||
(defun org-roam-append-notes-to-agenda (tag-name db)
|
||||
(org-roam-switch-db db t)
|
||||
; (org-roam-dailies-apply-old-todos-tags-to-all)
|
||||
(setq org-agenda-files (append org-agenda-files (org-roam-list-notes-by-tag "todos")))
|
||||
)
|
||||
|
||||
(defun org-roam-append-ids-to-org-id-files (db)
|
||||
(org-roam-switch-db db t)
|
||||
(setq org-id-files (append org-id-files (org-roam-list-files)))
|
||||
)
|
||||
|
||||
;; Refreshing org roam agenda
|
||||
(defun org-roam-refresh-agenda-list ()
|
||||
(interactive)
|
||||
(setq prev-org-roam-db-choice org-roam-db-choice)
|
||||
(setq org-agenda-files '())
|
||||
(setq org-id-files '())
|
||||
(dolist (DB full-org-roam-db-list-pretty)
|
||||
(org-roam-append-notes-to-agenda "todos" DB)
|
||||
(org-roam-append-ids-to-org-id-files DB)
|
||||
)
|
||||
(setq org-roam-directory (file-truename "~/Org")
|
||||
org-roam-db-location (file-truename "~/Org/org-roam.db")
|
||||
org-directory (file-truename "~/Org/"))
|
||||
(org-roam-db-sync)
|
||||
(setq org-agenda-files (org-roam-list-notes-by-tag "todos"))
|
||||
(setq org-id-files (org-roam-list-files))
|
||||
(setq org-agenda-files (-uniq org-agenda-files))
|
||||
(org-roam-switch-db prev-org-roam-db-choice 1)
|
||||
)
|
||||
|
@ -2126,6 +2123,8 @@ in
|
|||
# End block
|
||||
};
|
||||
|
||||
services.emacs.enable = true;
|
||||
|
||||
home.file.".emacs.d/themes/doom-stylix-theme.el".source = config.lib.stylix.colors {
|
||||
template = builtins.readFile ./themes/doom-stylix-theme.el.mustache;
|
||||
extension = ".el";
|
||||
|
|
|
@ -57,7 +57,6 @@ in
|
|||
exec-once = GOMAXPROCS=1 syncthing --no-browser
|
||||
exec-once = protonmail-bridge --noninteractive
|
||||
exec-once = waybar
|
||||
exec-once = emacs --daemon
|
||||
|
||||
exec-once = hypridle
|
||||
exec-once = sleep 5 && libinput-gestures
|
||||
|
|
Loading…
Reference in a new issue