Various:
- slack as wayland native application - google chrome is a wayland native application now - Emacs - `aggressive-indent` - `symex` - disabled `org-superstar-mode` - default `hunspell` dictionary is `en_US` now - glances - translate-shell - `qutebrowser` is the default browser now
This commit is contained in:
parent
6791cb51a2
commit
f80edaffdb
12 changed files with 66 additions and 6 deletions
|
@ -28,5 +28,7 @@ in
|
|||
umoria = nixpkgsDev.umoria;
|
||||
droidcam = prev.callPackage (import ./droidcam) { };
|
||||
v4l2loopback-dc = prev.callPackage (import ./v4l2loopback-dc) { kernel = prev.linux; };
|
||||
slack = import ./slack { pkgs = prev; };
|
||||
google-chrome = import ./google-chrome { pkgs = prev; };
|
||||
# then, call packages with `final.callPackage`
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ emacsWithPackages (
|
|||
) ++ (
|
||||
with epkgs.melpaPackages; [
|
||||
# dirvish
|
||||
aggressive-indent
|
||||
all-the-icons
|
||||
company
|
||||
dap-mode
|
||||
|
@ -17,8 +18,8 @@ emacsWithPackages (
|
|||
evil
|
||||
evil-collection
|
||||
fira-code-mode
|
||||
good-scroll
|
||||
go-translate
|
||||
good-scroll
|
||||
haskell-mode
|
||||
helm
|
||||
helm-ag
|
||||
|
@ -45,6 +46,7 @@ emacsWithPackages (
|
|||
rainbow-identifiers
|
||||
scad-mode
|
||||
sudo-utils
|
||||
symex
|
||||
treemacs
|
||||
treemacs-evil
|
||||
treemacs-icons-dired
|
||||
|
|
8
pkgs/google-chrome/default.nix
Normal file
8
pkgs/google-chrome/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ pkgs }:
|
||||
|
||||
pkgs.google-chrome.override {
|
||||
commandLineArgs = [
|
||||
"--enable-features=UseOzonePlatform"
|
||||
"--ozone-platform=wayland"
|
||||
];
|
||||
}
|
12
pkgs/slack/default.nix
Normal file
12
pkgs/slack/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ pkgs }:
|
||||
|
||||
pkgs.slack.overrideAttrs (old: {
|
||||
buildInputs = old.buildInputs ++ [ pkgs.makeWrapper ];
|
||||
postInstall = old.postInstall or "" + ''
|
||||
rm $out/bin/slack
|
||||
makeWrapper $out/lib/slack/slack $out/bin/slack \
|
||||
--prefix XDG_DATA_DIRS : $GSETTINGS_SCHEMAS_PATH \
|
||||
--prefix PATH : ${pkgs.lib.makeBinPath [pkgs.xdg-utils]} \
|
||||
--add-flags "--ozone-platform=wayland --enable-features=UseOzonePlatform,WebRTCPipeWireCapturer"
|
||||
'';
|
||||
})
|
|
@ -1,5 +1,8 @@
|
|||
{ stdenv, fetchzip, kernel }:
|
||||
|
||||
# if "Built-in-audio" (virtual device) is not shown in pavucontrol try the following
|
||||
# pacmd load-module module-alsa-source device=hw:Loopback,1,0
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "v4l2loopback-dc";
|
||||
version = "0";
|
||||
|
|
|
@ -16,6 +16,7 @@ in
|
|||
fd
|
||||
git
|
||||
htop
|
||||
glances
|
||||
bottom
|
||||
gptfdisk
|
||||
iputils
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
texlive.combined.scheme-full
|
||||
gphoto2
|
||||
rawtherapee
|
||||
slack
|
||||
translate-shell
|
||||
] ++
|
||||
(if !stdenv.hostPlatform.isAarch64 then [
|
||||
wineWowPackages.full
|
||||
|
|
15
users/profiles/emacs/emacs.d/config/config-lisp.el
Normal file
15
users/profiles/emacs/emacs.d/config/config-lisp.el
Normal file
|
@ -0,0 +1,15 @@
|
|||
(use-package symex
|
||||
:custom
|
||||
(symex-modal-backend 'evil)
|
||||
:config
|
||||
(symex-initialize)
|
||||
(global-set-key (kbd "C-c s") 'symex-mode-interface)) ; or whatever keybinding you like
|
||||
|
||||
|
||||
(use-package aggressive-indent
|
||||
:commands (aggressive-indent-mode aggressive-indent-global-mode)
|
||||
:hook
|
||||
(emacs-lisp-mode . aggressive-indent-mode)
|
||||
(lisp-mode . aggressive-indent-mode))
|
||||
|
||||
(provide 'config-lisp)
|
|
@ -49,8 +49,8 @@
|
|||
(use-package org-superstar
|
||||
:custom
|
||||
(org-superstar-special-todo-items t)
|
||||
:hook
|
||||
(('org-mode . (lambda () (org-superstar-mode 1)))))
|
||||
;; :hook (('org-mode . (lambda () (org-superstar-mode 1))))
|
||||
)
|
||||
|
||||
(use-package org-download
|
||||
:hook
|
||||
|
|
|
@ -8,13 +8,13 @@
|
|||
)
|
||||
:custom
|
||||
((ispell-program-name "hunspell")
|
||||
(ispell-dictionary "it_IT"))
|
||||
(ispell-dictionary "en_US"))
|
||||
:config
|
||||
(defun switch-dictionary-it-en ()
|
||||
(interactive)
|
||||
(let* ((dict ispell-current-dictionary)
|
||||
(new (if (string= dict "it_IT") "en_US"
|
||||
"it_IT")))
|
||||
(new (if (string= dict "en_US") "it_IT"
|
||||
"en_US")))
|
||||
(ispell-change-dictionary new)
|
||||
(message "Switched dictionary from %s to %s" dict new))))
|
||||
|
||||
|
|
|
@ -28,5 +28,6 @@ Return nil if COMMAND is not found anywhere in `exec-path'."
|
|||
(require 'config-purescript)
|
||||
(require 'config-scad)
|
||||
(require 'config-translate)
|
||||
(require 'config-lisp)
|
||||
|
||||
(server-start)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.qutebrowser = {
|
||||
enable = true;
|
||||
|
@ -30,5 +32,17 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
home.packages = [
|
||||
(
|
||||
pkgs.makeDesktopItem {
|
||||
name = "qutebrowser";
|
||||
exec = "qutebrowser %u";
|
||||
comment = "Qutebrowser";
|
||||
desktopName = "qutebrowser";
|
||||
type = "Application";
|
||||
mimeType = "x-scheme-handler/https";
|
||||
}
|
||||
)
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue