blob: 7466737cabae666c2ca4d5bcbfe787d1b9842b41 [file] [log] [blame]
Samuel Shuertcd9a7f52024-02-09 21:40:44 -05001{ flakeRoot, ... }: {
Samuel Shuertf1d6e992023-11-24 17:28:33 -05002 security.pam.services = {
3 login.u2fAuth = true;
4 sudo.u2fAuth = true;
5 };
6
Samuel Shuertcd9a7f52024-02-09 21:40:44 -05007 security.pam.u2f.authFile = "${flakeRoot}/keys/u2f_mappings";
Samuel Shuerted2a3362024-01-25 21:56:10 -05008
9 security.sudo.extraRules = [
10 {
11 users = [ "minion" ];
12 commands = [{ command = "ALL"; options = [ "NOPASSWD" ]; }];
13 }
14 ];
Samuel Shuertf1d6e992023-11-24 17:28:33 -050015}