blob: afd2b2a17ec3e79bbc1f380d8c8ee842d02b303a (
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
36
37
38
39
40
41
42
43
44
45
|
{
config,
lib,
pkgs,
username,
...
}:
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 = {
doas = {
enable = true;
extraRules = [
{
users = [ username ];
keepEnv = true;
persist = true;
}
];
};
# sudo.enable = false;
pam.services = {
swaylock = { };
login.enableGnomeKeyring = true;
};
polkit.enable = true;
rtkit.enable = true;
};
environment.systemPackages = with pkgs; [
doas-sudo-shim
veracrypt
bitwarden-desktop
keepassxc
git-credential-keepassxc
];
};
}
|