Skip to content

Commit

Permalink
Move fingerprint enabling to facter
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Nov 11, 2024
1 parent 7b901dd commit 7b2c722
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion hosts/isshin/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
hosts.laptop.enable = true;

# Eanble fingerprint for framework laptop
fingerprint.enable = true;
hosts.amd.enable = true;

# Fix 6GHz problem
Expand Down
5 changes: 0 additions & 5 deletions hosts/yhwach/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,4 @@

# Set system time
time.hardwareClockInLocalTime = true;

# cosmic.enable = true;

# Eanble fingerprint for framework laptop
# fingerprint.enable = true;
}
2 changes: 1 addition & 1 deletion modules/nixos/security/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
./yubikey
];

fingerprint.enable = lib.mkDefault false;
facter.detected.fingerprint.enable = lib.mkOverride 2000 false;
rssh.enable = lib.mkDefault (!config.yubikey.enable && config.ssh.enable);
secrets.enable = lib.mkDefault true;
tpm.enable = lib.mkOptionDefault false;
Expand Down
4 changes: 3 additions & 1 deletion modules/nixos/security/fingerprint.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
...
}:
{
options.fingerprint.enable = lib.mkEnableOption "Enable fingerprint scanner support";
options.fingerprint.enable = lib.mkEnableOption "Enable fingerprint scanner support" // {
default = config.facter.detected.fingerprint.enable;
};

config = lib.mkIf config.fingerprint.enable {
# Enable fingerprint support with goodix (framework)
Expand Down

0 comments on commit 7b2c722

Please sign in to comment.