feat: added proton-pass and updated proton-vpn
This commit is contained in:
parent
d661421821
commit
0e55f5d40a
5 changed files with 82 additions and 7 deletions
31
modules/home-manager/programs/proton-pass.nix
Normal file
31
modules/home-manager/programs/proton-pass.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{...}: {
|
||||
flake.homeModules.home-manager-proton-pass = {
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
cfg = config.programs.proton-pass;
|
||||
in {
|
||||
options.programs.proton-pass = {
|
||||
enable = lib.mkEnableOption "enable Proton Pass";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
proton-pass
|
||||
];
|
||||
}
|
||||
(
|
||||
lib.mkIf config.impermanence.enable {
|
||||
home.persistence."${config.impermanence.persistencePath}" = {
|
||||
directories = [
|
||||
"${config.xdg.configHome}/Proton Pass"
|
||||
];
|
||||
};
|
||||
}
|
||||
)
|
||||
]);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue