This commit is contained in:
Thomas Avé 2024-11-04 23:50:38 +01:00
parent 1f76c8601a
commit 9a21f7f4b3
3 changed files with 42 additions and 6 deletions

View File

@ -332,6 +332,26 @@
"type": "github"
}
},
"nixos-06cb-009a-fingerprint-sensor": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1730760028,
"narHash": "sha256-xaJjL4oiidBSZDu2PKB9/iq+YMqQWZqPWdT/7IZJXhQ=",
"owner": "thomasave",
"repo": "nixos-06cb-009a-fingerprint-sensor",
"rev": "4adc2939344de0bcf99cb6c6a36dce892474dc99",
"type": "github"
},
"original": {
"owner": "thomasave",
"repo": "nixos-06cb-009a-fingerprint-sensor",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1725634671,
@ -458,6 +478,7 @@
"home-manager": "home-manager",
"hyprland": "hyprland",
"hyprsplit": "hyprsplit",
"nixos-06cb-009a-fingerprint-sensor": "nixos-06cb-009a-fingerprint-sensor",
"nixpkgs": "nixpkgs_4",
"nur": "nur"
}

View File

@ -5,6 +5,10 @@
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-06cb-009a-fingerprint-sensor = {
url = "github:thomasave/nixos-06cb-009a-fingerprint-sensor";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
type = "git";
url = "https://github.com/hyprwm/Hyprland";
@ -26,7 +30,7 @@
fzgo.url = "git+https://git.thomasave.be/thomasave/fzgo.git";
};
outputs = { nixpkgs, home-manager, nur, ... }@inputs:
outputs = { nixpkgs, home-manager, nur, nixos-06cb-009a-fingerprint-sensor, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
@ -111,7 +115,10 @@
Riva = { user = "user"; };
Kell = { user = "user"; };
Aloria = { user = "user"; };
Arendia = { user = "user"; };
Arendia = { user = "user"; modules = [
nixos-06cb-009a-fingerprint-sensor.nixosModules.open-fprintd
nixos-06cb-009a-fingerprint-sensor.nixosModules.python-validity
];};
};
in
{ nixosConfigurations = nixpkgs.lib.mapAttrs mkSystem systems; };

View File

@ -1,4 +1,4 @@
{ pkgs, lib, inputs, config, ... }:
{ pkgs, lib, inputs, config, nixos-06cb-009a-fingerprint-sensor, ... }:
let
serverIP = "10.0.0.1";
in {
@ -38,9 +38,17 @@ in {
wantedBy = [ "multi-user.target" ];
serviceConfig.Type = "simple";
};
services.fprintd.enable = true;
services.fprintd.tod.driver = pkgs.libfprint-2-tod1-goodix; # Goodix driver module
services.fprintd.tod.enable = true;
services.open-fprintd.enable = true;
services.python-validity.enable = true;
# services.fprintd = {
# enable = true;
# tod = {
# enable = true;
# driver = nixos-06cb-009a-fingerprint-sensor.lib.libfprint-2-tod1-vfs0090-bingch {
# calib-data-file = ./calib-data.bin;
# };
# };
# };
# virtualisation