[WIP] Stuff

This commit is contained in:
Andrea Ciceri 2022-10-11 20:46:44 +02:00
parent f62f6ff7f4
commit 859896c9b2
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
6 changed files with 43 additions and 8 deletions

View file

@ -80,4 +80,9 @@
(setenv "SSH_AUTH_SOCK" "/run/user/1000/gnupg/S.gpg-agent.ssh") (setenv "SSH_AUTH_SOCK" "/run/user/1000/gnupg/S.gpg-agent.ssh")
(set-formatter! 'nix-flake "nix --no-warn-dirty fmt -- --quiet" :modes '(nix-mode)) (set-formatter! 'nix-flake "nixFormat 2>/dev/null" :modes '(nix-mode))
(defun doom-modeline-set-vcs-modeline () nil) ; FIXME
(setq +format-on-save-enabled-modes
'(not latex-mode))

View file

@ -30,13 +30,13 @@
:ui :ui
;;deft ; notational velocity for Emacs ;;deft ; notational velocity for Emacs
doom ; what makes DOOM look the way it does doom ; what makes DOOM look the way it does
doom-dashboard ; a nifty splash screen for Emacs ;;doom-dashboard ; a nifty splash screen for Emacs
;;doom-quit ; DOOM quit-message prompts when you quit Emacs ;;doom-quit ; DOOM quit-message prompts when you quit Emacs
;;(emoji +unicode) ; 🙂 (emoji +unicode) ; 🙂
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
;;hydra ;;hydra
;;indent-guides ; highlighted indent columns ;;indent-guides ; highlighted indent columns
;;ligatures ; ligatures and symbols to make your code pretty again ligatures ; ligatures and symbols to make your code pretty again
minimap ; show a map of the code on the side minimap ; show a map of the code on the side
modeline ; snazzy, Atom-inspired modeline, plus API modeline ; snazzy, Atom-inspired modeline, plus API
;;nav-flash ; blink cursor line after big motions ;;nav-flash ; blink cursor line after big motions
@ -59,8 +59,8 @@
(format +onsave) ; automated prettiness (format +onsave) ; automated prettiness
;;god ; run Emacs commands without modifier keys ;;god ; run Emacs commands without modifier keys
;;lispy ; vim for lisp, for people who don't like vim ;;lispy ; vim for lisp, for people who don't like vim
;;multiple-cursors ; editing in many places at once multiple-cursors ; editing in many places at once
;;objed ; text object editing for the innocent ;; objed ; text object editing for the innocent
;;parinfer ; turn lisp into python, sort of ;;parinfer ; turn lisp into python, sort of
;;rotate-text ; cycle region at point between text candidates ;;rotate-text ; cycle region at point between text candidates
snippets ; my elves. They type so I don't have to snippets ; my elves. They type so I don't have to
@ -95,7 +95,7 @@
(eval +overlay) ; run code, run (also, repls) (eval +overlay) ; run code, run (also, repls)
;;gist ; interacting with github gists ;;gist ; interacting with github gists
lookup ; navigate your code and its documentation lookup ; navigate your code and its documentation
;;lsp ; M-x vscode lsp ; M-x vscode
magit ; a git porcelain for Emacs magit ; a git porcelain for Emacs
make ; run make tasks from Emacs make ; run make tasks from Emacs
pass ; password manager for nerds pass ; password manager for nerds

View file

@ -16,7 +16,21 @@
defaultEditor = true; defaultEditor = true;
}; };
home.packages = with pkgs; [ home.packages = with pkgs; let
path = pkgs.lib.makeBinPath (with pkgs; [
nix
nixpkgs-fmt
git
]);
nixFormat = writeScriptBin "nixFormat" ''
export PATH=${pkgs.lib.escapeShellArg path}
if [[ ! "$(nix fmt $@)" ]]
then
nixpkgs-fmt $@
fi
'';
in [
binutils binutils
(ripgrep.override {withPCRE2 = true;}) (ripgrep.override {withPCRE2 = true;})
gnutls gnutls
@ -24,6 +38,8 @@
imagemagick imagemagick
sqlite sqlite
maim maim
nixFormat
jq
xclip xclip
]; ];
} }

View file

@ -15,6 +15,7 @@
"mara" "mara"
"xfce" "xfce"
"battery" "battery"
"printing"
]; ];
ccr.enable = true; ccr.enable = true;

View file

@ -26,6 +26,7 @@
"fprintd" "fprintd"
"binfmt" "binfmt"
"udisks2" "udisks2"
"printing"
]; ];
ccr = { ccr = {

View file

@ -0,0 +1,12 @@
{
config,
lib,
pkgs,
...
}: {
services.avahi.enable = true;
# Important to resolve .local domains of printers, otherwise you get an error
# like "Impossible to connect to XXX.local: Name or service not known"
services.avahi.nssmdns = true;
services.printing.enable = true;
}