diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2020-09-04 15:24:36 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2020-09-04 15:24:40 -0400 |
commit | 739033c5211ea4611e86f45790f3ae859d303a77 (patch) | |
tree | 963c5af22dd5a6f5295454a27f080d5a9b31cd5a /config/yubikey.nix | |
parent | 3389cdb4e14732c21bc6b22336fd29cbb5200060 (diff) |
various fixes
Diffstat (limited to 'config/yubikey.nix')
-rw-r--r-- | config/yubikey.nix | 20 |
1 files changed, 20 insertions, 0 deletions
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"; + }; + }; } |