Spring cleaning

This commit is contained in:
Andrea Ciceri 2022-05-28 16:22:41 +02:00
parent 8b80ba24c2
commit ada29c1c42
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
19 changed files with 254 additions and 435 deletions

View file

@ -6,7 +6,6 @@
};
nix-direnv = {
enable = true;
enableFlakes = true;
};
};
}

View file

@ -12,7 +12,7 @@
};
services.emacs = {
enable = !pkgs.stdenv.hostPlatform.isDarwin;
enable = true;
};
# For some reason Hunspell dictionaries paths must be specified on Darwin
@ -38,7 +38,6 @@
delta
fd
graphviz-nox
haskell-language-server
hunspell
hunspellDicts.en_US
hunspellDicts.it_IT
@ -49,7 +48,6 @@
python3Full
rnix-lsp
silver-searcher
stylish-haskell
unzip
(
makeDesktopItem {
@ -58,19 +56,12 @@
comment = "Org protocol";
desktopName = "org-protocol";
type = "Application";
mimeType = "x-scheme-handler/org-protocol";
mimeTypes = [ "x-scheme-handler/org-protocol" ];
}
)
] ++ (if pkgs.system == "x86_64-linux" then [
python-language-server
] ++ (with easy-ps; [
# spago2nix
ffmpegthumbnailer
nodejs
pulp
purescript-language-server
purs
purs-tidy
spago
]) else [ ]);
}

View file

@ -4,4 +4,4 @@
:config
(envrc-global-mode))
(provide 'config-envrc)
(provide 'config-direnv)

View file

@ -16,4 +16,17 @@
:config
(evil-collection-init))
(use-package vimish-fold
:ensure
:after evil)
(use-package evil-vimish-fold
:ensure
:after vimish-fold
:init
(setq evil-vimish-fold-mode-lighter "")
(setq evil-vimish-fold-target-modes '(prog-mode conf-mode text-mode))
:config
(global-evil-vimish-fold-mode))
(provide 'config-evil)

View file

@ -1,9 +1,9 @@
(use-package nix-mode
:mode "\\.nix\\'"
;;:hook
;;(before-save . lsp-format-buffer)
)
:config (setq format-on-save t)
:bind ("<f8>" . (lambda () (interactive) (setq format-on-save (not format-on-save)) ))
:hook
(before-save . (lambda () (when (format-on-save) (lsp-format-buffer)))))
(require 'sudo-utils)

View file

@ -41,7 +41,7 @@
comment = "Qutebrowser";
desktopName = "qutebrowser";
type = "Application";
mimeType = "x-scheme-handler/https";
mimeTypes = [ "x-scheme-handler/https" ];
}
)
];

View file

@ -1,9 +1,5 @@
{ pkgs, ... }:
{
# only purpose of this is to make vscode login to Github
services.gnome-keyring.enable = true;
programs.vscode = {
enable = true;