Skip to content

Commit

Permalink
chore: refine yubikey settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Swarsel committed Jul 11, 2024
1 parent 26f8576 commit 183c042
Show file tree
Hide file tree
Showing 18 changed files with 227 additions and 844 deletions.
30 changes: 22 additions & 8 deletions SwarselSystems.org
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ These blocks are used in several places throughout the configurations, but not o

These blocks are to be used on systems that are not running NixOS. For example, one such system would be a Fedora system running home manager, where the respective NixOS features might not be available.

*** Theme
*** Theme (stylix)
:PROPERTIES:
:CUSTOM_ID: h:5bc1b0c9-dc59-4c81-b5b5-e60699deda78
:END:
Expand Down Expand Up @@ -270,10 +270,12 @@ I also enable the extra socket here for ssh agent forwarding. But I have not ful
enable = true;
enableSshSupport = true;
enableExtraSocket = true;
pinentryPackage = pkgs.pinentry-gtk2;
pinentryPackage = pkgs.pinentry.gtk2;
defaultCacheTtl = 600;
maxCacheTtl = 7200;
extraConfig = ''
allow-emacs-pinentry
allow-loopback-pinentry
allow-emacs-pinentry
'';
};

Expand Down Expand Up @@ -4782,14 +4784,17 @@ Mostly used to install some compilers and lsp's that I want to have available wh
yubikey-personalization
yubikey-personalization-gui
yubico-pam
# yubioath-flutter
# yubikey-manager
# yubikey-manager-qt
yubioath-flutter
yubikey-manager
yubikey-manager-qt
yubico-piv-tool
cfssl
pcsctools
pcscliteWithPolkit.out
# pinentry

# theme related
gnome.adwaita-icon-theme
adwaita-icon-theme

# kde-connect
xdg-desktop-portal
Expand Down Expand Up @@ -6360,7 +6365,6 @@ The rest of this configuration is found here:
tooltip-format= "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
};


pulseaudio= {
format= "{icon} {volume:2}%";
format-bluetooth= "{icon} {volume}%";
Expand Down Expand Up @@ -9291,9 +9295,19 @@ Also, Emacs needs a little extra love to accept my Yubikey for git commits etc.
("~/.dotfiles/" . 0)))
:custom
(magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1)) ; stay in the same window
#+end_src

* Yubikey support

The following settings are needed to make sure emacs works for magit commits and pushes. It is not a beautiful solution since commiting uses pinentry-emacs and pushing uses pinentry-gtk2, but it works for now at least.

#+begin_src emacs-lisp


;; yubikey support for pushing commits
;; commiting is enabled through nixos gpg-agent config
(use-package pinentry)
(pinentry-start)
(setq epg-pinentry-mode 'loopback)
(setenv "SSH_AUTH_SOCK" (string-chop-newline (shell-command-to-string "gpgconf --list-dirs agent-ssh-socket")))
#+end_src
Expand Down
708 changes: 148 additions & 560 deletions index.html

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions profiles/TEMPLATE/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
enable = true;
enableSshSupport = true;
enableExtraSocket = true;
pinentryPackage = pkgs.pinentry-gtk2;
pinentryPackage = pkgs.pinentry.gtk2;
defaultCacheTtl = 600;
maxCacheTtl = 7200;
extraConfig = ''
allow-emacs-pinentry
allow-loopback-pinentry
allow-emacs-pinentry
'';
};

Expand Down
1 change: 1 addition & 0 deletions profiles/TEMPLATE/nixos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
stylix.image = ../../wallpaper/TEMPLATEwp.png;

stylix = {
enable = true;
base16Scheme = ../../wallpaper/swarsel.yaml;
# base16Scheme = "${pkgs.base16-schemes}/share/themes/shapeshifter.yaml";
polarity = "dark";
Expand Down
Loading

0 comments on commit 183c042

Please sign in to comment.