195 current 2025-06-08 01:02:01 25.11.20250605.d3d2d80 6.15.1 *

This commit is contained in:
2025-06-08 01:02:12 -04:00
parent 572c5987b2
commit 2d365c49ab
3 changed files with 46 additions and 31 deletions

View File

@@ -11,6 +11,15 @@
(add-hook 'emacs-startup-hook #'chase/display-startup-time) (add-hook 'emacs-startup-hook #'chase/display-startup-time)
;; automatically create missing directories
;; source: https://emacsredux.com/blog/2022/06/12/auto-create-missing-directories/
(defun er-auto-create-missing-dirs ()
(let ((target-dir (file-name-directory buffer-file-name)))
(unless (file-exists-p target-dir)
(make-directory target-dir t))))
(add-to-list 'find-file-not-found-functions #'er-auto-create-missing-dirs)
;; set repos and bootstrap use-package ;; set repos and bootstrap use-package
;; (require 'package) ;; (require 'package)
@@ -396,7 +405,7 @@
(setq org-capture-templates (setq org-capture-templates
'(("i" "Inbox" entry (file "gtd/inbox.org") '(("i" "Inbox" entry (file "gtd/inbox.org")
"* TODO %?\n") "* TODO %?\n")
("n" "Note" entry (file "~/org/inbox.org") ("n" "Note" entry (file "gtd/inbox.org")
"* %? :NOTE:\n"))) "* %? :NOTE:\n")))
;; TODO ;; TODO
@@ -447,7 +456,8 @@
(use-package org-roam (use-package org-roam
:after org :after org
:custom :custom
(org-roam-directory "~/org/roam") (org-roam-directory
(expand-file-name "roam/" org-directory))
:bind :bind
(("C-c n l" . org-roam-buffer-toggle) (("C-c n l" . org-roam-buffer-toggle)
("C-c n f" . org-roam-node-find) ("C-c n f" . org-roam-node-find)

View File

@@ -1,12 +1,13 @@
# Edit this configuration file to define what should be installed on # Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ {
imports = config,
[ # Include the results of the hardware scan. pkgs,
...
}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
../../nixos/desktop.nix ../../nixos/desktop.nix
]; ];

View File

@@ -1,11 +1,15 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ {
imports = config,
[ (modulesPath + "/installer/scan/not-detected.nix") lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"]; boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"];
@@ -13,14 +17,14 @@
boot.kernelModules = ["kvm-intel"]; boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = []; boot.extraModulePackages = [];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/612f8704-c020-4188-85a7-27127e9b9ff2"; device = "/dev/disk/by-uuid/612f8704-c020-4188-85a7-27127e9b9ff2";
fsType = "btrfs"; fsType = "btrfs";
options = ["subvol=@"]; options = ["subvol=@"];
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/2211-57BE"; device = "/dev/disk/by-uuid/2211-57BE";
fsType = "vfat"; fsType = "vfat";
options = ["fmask=0077" "dmask=0077"]; options = ["fmask=0077" "dmask=0077"];
}; };