From 739033c5211ea4611e86f45790f3ae859d303a77 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Fri, 4 Sep 2020 15:24:36 -0400 Subject: various fixes --- config/yubikey.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'config/yubikey.nix') diff --git a/config/yubikey.nix b/config/yubikey.nix index 3029d90..d10bb57 100644 --- a/config/yubikey.nix +++ b/config/yubikey.nix @@ -17,6 +17,7 @@ in libu2f-host yubikey-personalization ]; + services.gnome3.gnome-keyring.enable = lib.mkForce false; programs.gnupg.agent = { enable = true; @@ -28,4 +29,23 @@ in environment = { systemPackages = yubikey-pkgs; }; + + security.sudo.extraRules = [ + { + groups = [ "wheel" ]; + commands = [ { command = "${pkgs.systemd}/bin/systemctl restart pcscd"; options = [ "NOPASSWD" ]; } ]; + } + ]; + + systemd.user.services.restart-pcscd = { + description = "Redshift colour temperature adjuster"; + wantedBy = [ "graphical-session.target" ]; + partOf = [ "graphical-session.target" ]; + serviceConfig = { + ExecStart = '' + sudo systemctl restart pcscd + ''; + Type = "oneshot"; + }; + }; } -- cgit v1.2.3