rofi-pass: add rofi-pass plugin for password-store
This commit is contained in:
parent
66a68b4a58
commit
1a7f190cb9
9 changed files with 137 additions and 0 deletions
4
tests/modules/programs/rofi-pass/default.nix
Normal file
4
tests/modules/programs/rofi-pass/default.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
rofi-pass-root = ./rofi-pass-root.nix;
|
||||
rofi-pass-config = ./rofi-pass-config.nix;
|
||||
}
|
||||
35
tests/modules/programs/rofi-pass/rofi-pass-config.nix
Normal file
35
tests/modules/programs/rofi-pass/rofi-pass-config.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
config = {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
|
||||
pass = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
# Extra config for rofi-pass
|
||||
xdotool_delay=12
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(self: super: { rofi-pass = pkgs.writeScriptBin "dummy-rofi-pass" ""; })
|
||||
];
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent \
|
||||
home-files/.config/rofi-pass/config \
|
||||
${
|
||||
pkgs.writeText "rofi-pass-expected-config" ''
|
||||
# Extra config for rofi-pass
|
||||
xdotool_delay=12
|
||||
|
||||
''
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
30
tests/modules/programs/rofi-pass/rofi-pass-root.nix
Normal file
30
tests/modules/programs/rofi-pass/rofi-pass-root.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
config = {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
|
||||
pass = {
|
||||
enable = true;
|
||||
stores = [ "~/.local/share/password-store" ];
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(self: super: { rofi-pass = pkgs.writeScriptBin "dummy-rofi-pass" ""; })
|
||||
];
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent \
|
||||
home-files/.config/rofi-pass/config \
|
||||
${
|
||||
pkgs.writeText "rofi-pass-expected-config" ''
|
||||
root=~/.local/share/password-store
|
||||
''
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue