Skip to content

Commit

Permalink
fix(nix): use pinentry-gnome for rbw
Browse files Browse the repository at this point in the history
  • Loading branch information
sbulav committed Jan 31, 2024
1 parent ee4bad4 commit 94ffc74
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 103 deletions.
7 changes: 7 additions & 0 deletions nix/modules/nixos/desktop/addons/gtk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ in {
options.custom.desktop.addons.gtk = with types; {
enable = mkBoolOpt false "Whether to customize GTK and apply themes.";

environment.systemPackages = with pkgs; [
adwaita-qt
adwaita-qt6
gnome.adwaita-icon-theme
gnome.gnome-tweaks
];

home.config = mkIf cfg.enable {
gtk = {
enable = true;
Expand Down
2 changes: 1 addition & 1 deletion nix/modules/nixos/desktop/addons/rofi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ in {
};

config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [rbw rofi-rbw wtype];
environment.systemPackages = with pkgs; [rofi-rbw wtype];
home.programs.rofi = {
enable = true;
plugins = with pkgs; [
Expand Down
2 changes: 2 additions & 0 deletions nix/modules/nixos/suites/desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ in {
};

config = mkIf cfg.enable {
system.security.rbw.enable = true;
custom = {
desktop = {
hyprland = enabled;
Expand All @@ -25,6 +26,7 @@ in {
telegram = enabled;
vlc = enabled;
zathura = enabled;
pcmanfm = enabled;
};
};
};
Expand Down
1 change: 0 additions & 1 deletion nix/modules/nixos/system/security/gpg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ in {
environment.systemPackages = with pkgs; [
gnupg
pinentry-curses
pinentry-qt
];

programs = {
Expand Down
101 changes: 0 additions & 101 deletions nix/modules/nixos/system/security/gpg/tmux.conf

This file was deleted.

35 changes: 35 additions & 0 deletions nix/modules/nixos/system/security/rbw/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
options,
config,
pkgs,
lib,
inputs,
...
}:
with lib;
with lib.custom; let
cfg = config.system.security.rbw;
in {
options.system.security.rbw = with types; {
enable = mkBoolOpt false "Whether or not to enable rbw.";
lockTimeout = mkOpt int 28800 "The amount of time to wait before continuing with shell init.";
};

config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
rbw
pinentry-gnome
];

home.programs = {
rbw = {
enable = true;
settings = {
lock_timeout = cfg.lockTimeout;
pinentry = "gnome3";
email = "[email protected]";
};
};
};
};
}

0 comments on commit 94ffc74

Please sign in to comment.