summaryrefslogtreecommitdiff
path: root/os/core/security.nix
blob: f1c41c2a896a859f1a252972ccc4e84a21d94f93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  config,
  lib,
  pkgs,
  ...
}:
let
  cfg = config.os.core.security;
in
{
  options.os.core.security.enable = lib.mkEnableOption "core security services";
  config = lib.mkIf cfg.enable {
    services.gnome.gnome-keyring.enable = true;

    security = {
      pam.services = {
        swaylock = { };
        login.enableGnomeKeyring = true;
      };
      polkit.enable = true;
      rtkit.enable = true;
    };

    environment.systemPackages = with pkgs; [
      veracrypt

      bitwarden-desktop
      keyguard

      keepassxc
      keepassxc-go
      git-credential-keepassxc
    ];
  };
}