aboutsummaryrefslogblamecommitdiff
path: root/profiles/trusted/default.nix
blob: a67f1cf14132d6159540f8fe1b9b605974b5d8c3 (plain) (tree)
1
2
3
4
                     


                                                        











                                                              
                                        

    
{ config, lib, ... }:
let
  cfg = config.my.profiles.trusted;
  isEnabled = config.my.home.wm.windowManager == "sway";
in {
  options.my.profiles.trusted = with lib; {
    enable = mkEnableOption "trusted profile";
  };
  config = lib.mkIf cfg.enable {
    my.home.gpg = {
      enable = true;
      pinentry = "gnome3";
      defaultKey = "23348B57F01D4234B5CFBA0923208AC01EB6EEA1";
    };
    my.home.mail.enable = true;
    my.home.pass.enable = true;
    my.home.seahorse.enable = isEnabled;
  };
}