trezor udev, emacs changes

This commit is contained in:
m3tam3re 2023-07-03 14:32:30 +02:00
parent f7bf66c9b5
commit 6ac66d4809
6 changed files with 7 additions and 123 deletions

View File

@ -1,115 +1,4 @@
{ pkgs, ... }: { { pkgs, ... }: {
services.emacs.enable = true; services.emacs.enable = true;
programs.emacs = { # 310 programs.emacs = { enable = true; };
enable = true;
extraPackages = epkgs: [
epkgs.all-the-icons
epkgs.all-the-icons-dired
epkgs.calfw
epkgs.calfw-org
epkgs.calfw-ical
epkgs.command-log-mode
epkgs.company
epkgs.company-box
epkgs.consult
epkgs.counsel
epkgs.counsel-projectile
epkgs.consult-org-roam
epkgs.dart-mode
epkgs.dashboard
epkgs.deft
epkgs.dired-hide-dotfiles
epkgs.dired-open
epkgs.dired-single
epkgs.direnv
epkgs.docker
epkgs.docker-compose-mode
epkgs.dockerfile-mode
epkgs.docker-tramp
epkgs.doom-themes
epkgs.doom-modeline
epkgs.elfeed
epkgs.elfeed-web
epkgs.elfeed-tube
epkgs.elfeed-tube-mpv
epkgs.elfeed-org
epkgs.embark
epkgs.embark-consult
epkgs.ement
epkgs.emmet-mode
epkgs.envrc
epkgs.evil
epkgs.evil-collection
epkgs.evil-lispy
epkgs.evil-nerd-commenter
epkgs.exec-path-from-shell
epkgs.forge
epkgs.fontawesome
epkgs.general
epkgs.geiser
epkgs.geiser-guile
epkgs.flycheck-guile
epkgs.go-mode
epkgs.graphql-mode
epkgs.helpful
epkgs.helm
epkgs.helm-lsp
epkgs.helm-descbinds
epkgs.helm-rg
epkgs.helm-c-yasnippet
epkgs.highlight-indent-guides
epkgs.hydra
epkgs.ivy
epkgs.ivy-prescient
epkgs.ivy-rich
epkgs.json-mode
#epkgs.khalel
epkgs.lispy
epkgs.lsp-dart
epkgs.lsp-ivy
epkgs.lsp-mode
epkgs.lsp-ui
epkgs.lsp-treemacs
epkgs.magit
epkgs.marginalia
epkgs.mastodon
epkgs.mermaid-mode
epkgs.nix-mode
epkgs.no-littering
epkgs.ob-mermaid
epkgs.ob-nix
epkgs.org
epkgs.org-auto-tangle
epkgs.org-bullets
epkgs.org-download
epkgs.org-gcal
epkgs.org-ql
epkgs.org-present
epkgs.org-roam
epkgs.org-roam-ui
epkgs.pass
epkgs.pdf-tools
epkgs.projectile
epkgs.pyenv-mode
epkgs.python-mode
epkgs.rainbow-delimiters
epkgs.request
epkgs.restclient
epkgs.rustic
epkgs.smartparens
epkgs.sqlite3
epkgs.svelte-mode
epkgs.todoist
epkgs.typescript-mode
epkgs.use-package
epkgs.visual-fill-column
epkgs.vue-mode
epkgs.vterm
epkgs.web-mode
epkgs.which-key
epkgs.yasnippet
epkgs.yasnippet-snippets
epkgs.zetteldeft
];
};
} }

View File

@ -9,6 +9,6 @@ in {
options.features.desktop.crypto.enable = mkEnableOption "Enable Crypto"; options.features.desktop.crypto.enable = mkEnableOption "Enable Crypto";
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = with pkgs; [ bisq-desktop monero-gui trezord trezor-suite ]; home.packages = with pkgs; [ bisq-desktop monero-gui trezor-suite ];
}; };
} }

View File

@ -55,6 +55,7 @@
brightnessctl brightnessctl
clipman clipman
distrobox distrobox
eww-wayland
flameshot flameshot
firefox firefox
fuzzel fuzzel
@ -71,8 +72,10 @@
nyxt nyxt
qt5ct qt5ct
rustdesk rustdesk
socat
tor-browser-bundle-bin tor-browser-bundle-bin
transmission-gtk transmission-gtk
trayer
ungoogled-chromium ungoogled-chromium
unrar unrar
unzip unzip

View File

@ -32,5 +32,5 @@
}; };
services = { }; services = { };
}; };
home.stateVersion = "23.05"; home.stateVersion = "23.11";
} }

View File

@ -19,4 +19,5 @@
services.sabnzbd.enable = true; services.sabnzbd.enable = true;
services.i2p.enable = true; services.i2p.enable = true;
services.gvfs.enable = true; services.gvfs.enable = true;
services.trezord.enable = true;
} }

View File

@ -2,14 +2,5 @@
{ {
services.udev.extraRules = '' services.udev.extraRules = ''
# Trezor
SUBSYSTEM=="usb", ATTR{idVendor}=="534c", ATTR{idProduct}=="0001", MODE="0660", GROUP="plugdev", TAG+="uaccess", TAG+="udev-acl", SYMLINK+="trezor%n"
KERNEL=="hidraw*", ATTRS{idVendor}=="534c", ATTRS{idProduct}=="0001", MODE="0660", GROUP="plugdev", TAG+="uaccess", TAG+="udev-acl"
# Trezor v2
SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="53c0", MODE="0660", GROUP="plugdev", TAG+="uaccess", TAG+="udev-acl", SYMLINK+="trezor%n"
SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="53c1", MODE="0660", GROUP="plugdev", TAG+="uaccess", TAG+="udev-acl", SYMLINK+="trezor%n"
KERNEL=="hidraw*", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="53c1", MODE="0660", GROUP="plugdev", TAG+="uaccess", TAG+="udev-acl"
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", MODE="0666", GROUP="users", RUN+="${pkgs.coreutils}/bin/chmod a+w /sys/class/backlight/%k/brightness"
ACTION=="add", SUBSYSTEM=="thunderbolt", ATTR{authorized}=="0", ATTR{authorized}="1"
''; '';
} }