Skip to content

Commit

Permalink
feat(nix): move rbw to hm
Browse files Browse the repository at this point in the history
  • Loading branch information
sbulav committed Feb 21, 2024
1 parent d810d52 commit 87a974a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions nix/homes/x86_64-linux/sab@nz/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ with lib.custom; {
git = enabled;
direnv = disabled;
};
security.rbw.enable = true;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
}:
with lib;
with lib.custom; let
cfg = config.system.security.rbw;
cfg = config.custom.security.rbw;
in {
options.system.security.rbw = with types; {
options.custom.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; [
home.packages = with pkgs; [
rbw
pinentry-gnome
];

home.programs = {
programs = {
rbw = {
enable = true;
settings = {
Expand Down
1 change: 0 additions & 1 deletion nix/modules/nixos/suites/desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ in {
};

config = mkIf cfg.enable {
system.security.rbw.enable = true;
custom = {
desktop.addons = {
keyring = enabled;
Expand Down

0 comments on commit 87a974a

Please sign in to comment.