- 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:
Andrea Ciceri 2022-05-03 12:32:04 +02:00
parent 6791cb51a2
commit f80edaffdb
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
12 changed files with 66 additions and 6 deletions

View file

@ -28,5 +28,7 @@ in
umoria = nixpkgsDev.umoria; umoria = nixpkgsDev.umoria;
droidcam = prev.callPackage (import ./droidcam) { }; droidcam = prev.callPackage (import ./droidcam) { };
v4l2loopback-dc = prev.callPackage (import ./v4l2loopback-dc) { kernel = prev.linux; }; 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` # then, call packages with `final.callPackage`
} }

View file

@ -9,6 +9,7 @@ emacsWithPackages (
) ++ ( ) ++ (
with epkgs.melpaPackages; [ with epkgs.melpaPackages; [
# dirvish # dirvish
aggressive-indent
all-the-icons all-the-icons
company company
dap-mode dap-mode
@ -17,8 +18,8 @@ emacsWithPackages (
evil evil
evil-collection evil-collection
fira-code-mode fira-code-mode
good-scroll
go-translate go-translate
good-scroll
haskell-mode haskell-mode
helm helm
helm-ag helm-ag
@ -45,6 +46,7 @@ emacsWithPackages (
rainbow-identifiers rainbow-identifiers
scad-mode scad-mode
sudo-utils sudo-utils
symex
treemacs treemacs
treemacs-evil treemacs-evil
treemacs-icons-dired treemacs-icons-dired

View file

@ -0,0 +1,8 @@
{ pkgs }:
pkgs.google-chrome.override {
commandLineArgs = [
"--enable-features=UseOzonePlatform"
"--ozone-platform=wayland"
];
}

12
pkgs/slack/default.nix Normal file
View 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"
'';
})

View file

@ -1,5 +1,8 @@
{ stdenv, fetchzip, kernel }: { 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 { stdenv.mkDerivation rec {
pname = "v4l2loopback-dc"; pname = "v4l2loopback-dc";
version = "0"; version = "0";

View file

@ -16,6 +16,7 @@ in
fd fd
git git
htop htop
glances
bottom bottom
gptfdisk gptfdisk
iputils iputils

View file

@ -26,6 +26,8 @@
texlive.combined.scheme-full texlive.combined.scheme-full
gphoto2 gphoto2
rawtherapee rawtherapee
slack
translate-shell
] ++ ] ++
(if !stdenv.hostPlatform.isAarch64 then [ (if !stdenv.hostPlatform.isAarch64 then [
wineWowPackages.full wineWowPackages.full

View 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)

View file

@ -49,8 +49,8 @@
(use-package org-superstar (use-package org-superstar
:custom :custom
(org-superstar-special-todo-items t) (org-superstar-special-todo-items t)
:hook ;; :hook (('org-mode . (lambda () (org-superstar-mode 1))))
(('org-mode . (lambda () (org-superstar-mode 1))))) )
(use-package org-download (use-package org-download
:hook :hook

View file

@ -8,13 +8,13 @@
) )
:custom :custom
((ispell-program-name "hunspell") ((ispell-program-name "hunspell")
(ispell-dictionary "it_IT")) (ispell-dictionary "en_US"))
:config :config
(defun switch-dictionary-it-en () (defun switch-dictionary-it-en ()
(interactive) (interactive)
(let* ((dict ispell-current-dictionary) (let* ((dict ispell-current-dictionary)
(new (if (string= dict "it_IT") "en_US" (new (if (string= dict "en_US") "it_IT"
"it_IT"))) "en_US")))
(ispell-change-dictionary new) (ispell-change-dictionary new)
(message "Switched dictionary from %s to %s" dict new)))) (message "Switched dictionary from %s to %s" dict new))))

View file

@ -28,5 +28,6 @@ Return nil if COMMAND is not found anywhere in `exec-path'."
(require 'config-purescript) (require 'config-purescript)
(require 'config-scad) (require 'config-scad)
(require 'config-translate) (require 'config-translate)
(require 'config-lisp)
(server-start) (server-start)

View file

@ -1,3 +1,5 @@
{ pkgs, ... }:
{ {
programs.qutebrowser = { programs.qutebrowser = {
enable = true; 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";
}
)
];
} }