nixos-config/modules/pass.nix
Charlotte Van Petegem 0df4d5654f
Finish modularising config
There are still some things I want to change, but at least there aren't two systems now.
2021-06-27 00:32:31 +02:00

25 lines
686 B
Nix

{ config, lib, ... }:
{
options.chvp.pass.enable = lib.mkOption {
default = false;
example = true;
};
config = lib.mkIf config.chvp.pass.enable {
nixpkgs.overlays = [
(self: super: {
firefox = super.firefox.override { extraNativeMessagingHosts = [ self.passff-host ]; };
pass = (super.pass.override { pass = super.pass-wayland; }).withExtensions (ext: [ ext.pass-otp ]);
})
];
home-manager.users.charlotte = { ... }: {
programs.password-store = {
enable = true;
settings = { PASSWORD_STORE_DIR = "/home/charlotte/repos/passwords"; };
};
services.password-store-sync.enable = true;
};
};
}