Skip to content

Commit

Permalink
refactor: Simplify u2f settings, enhancements need further testing
Browse files Browse the repository at this point in the history
  • Loading branch information
lpchaim committed Aug 21, 2024
1 parent 54471c8 commit c28d0ed
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
12 changes: 0 additions & 12 deletions modules/nixos/security/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,9 @@ lib.lpchaim.mkModule {
description = "See pam.conf(5)";
default = "sufficient";
};
login.control = lib.mkOption {
description = "Specific to login";
default = "required";
};
};
};
configBuilder = cfg: lib.mkIf cfg.enable {
environment.etc."pam.d/login".text =
let
patchedLoginPam = lib.replaceStrings
[ "auth ${cfg.u2f.control} ${pkgs.pam_u2f}" ]
[ "auth ${cfg.u2f.login.control} ${pkgs.pam_u2f}" ]
config.security.pam.services.login.text;
in
lib.mkForce patchedLoginPam;
security.pam = {
services = {
login.u2fAuth = true;
Expand Down
2 changes: 0 additions & 2 deletions systems/x86_64-linux/steamdeck/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ in
]);

config = {
networking.hostName = "steamdeck";
system.stateVersion = "24.05";
my.security.u2f.login.control = "sufficient";

jovian = {
steam = {
Expand Down

0 comments on commit c28d0ed

Please sign in to comment.