This commit is contained in:
Sakooooo 2023-09-16 08:12:55 +00:00
parent 5a1181e878
commit 4640401716
Signed by: sako
GPG key ID: FE52FD65B76E4751
5 changed files with 29 additions and 14 deletions

View file

@ -510,6 +510,7 @@ make sure to setup authinfo
***** Nix
#+begin_src emacs-lisp
(use-package nix-mode
:hook (nix-mode . format-all-mode)
:mode "\\.nix\\'")
#+end_src
*** Commenter
@ -536,7 +537,8 @@ make sure to setup authinfo
*** Formatting
#+begin_src emacs-lisp
(use-package format-all
:hook ('prog-mode-hook . 'format-all-mode))
:config
(setq format-all-formatters '(("Nix" . "alejandra"))))
#+end_src
** Dired (quick file management in emacs)
Dired is a built-in file manager for Emacs that does some pretty amazing things! Here are some key bindings you should try out:

View file

@ -434,6 +434,7 @@
:hook (js2-mode . lsp-deferred))
(use-package nix-mode
:hook (nix-mode . format-all-mode)
:mode "\\.nix\\'")
(use-package evil-nerd-commenter
@ -454,7 +455,8 @@
:hook (company-mode . company-box-mode))
(use-package format-all
:hook ('prog-mode-hook . 'format-all-mode))
:config
(setq format-all-formatters '(("Nix" . "alejandra"))))
(use-package dired
:ensure nil

View file

@ -1,11 +1,16 @@
# nixd nix lsp using nix and nixpkgs
# where has this been my whole life
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.dev.nixd;
in
{
outputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.dev.nixd;
in {
options.modules.dev.nixd = {
enable = mkEnableOption false;
};

View file

@ -1,9 +1,14 @@
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.work.libreoffice;
in
{
outputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.work.libreoffice;
in {
options.modules.work.libreoffice = {
enable = mkEnableOption false;
};

View file

@ -1,4 +1,5 @@
# i wonder what the difference is
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let