fingerprint: try using open-fprintd

This commit is contained in:
Khaïs COLIN 2024-09-30 21:36:36 +02:00
parent 2a36446b47
commit 121eeb5380
3 changed files with 54 additions and 16 deletions

54
flake.lock generated
View file

@ -437,22 +437,39 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs": { "nixos-06cb-009a-fingerprint-sensor": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": { "locked": {
"lastModified": 1722087241, "lastModified": 1702831324,
"narHash": "sha256-2ShmEaFi0kJVOEEu5gmlykN5dwjWYWYUJmlRTvZQRpU=", "narHash": "sha256-bpDHKBDBcuMO14FFdBCEfsW26hzu2lby6xtfoU0jKW4=",
"owner": "NixOS", "owner": "ahbnr",
"repo": "nixpkgs", "repo": "nixos-06cb-009a-fingerprint-sensor",
"rev": "8c50662509100d53229d4be607f1a3a31157fa12", "rev": "58a01fe62f5a71778bffaeb9929a118b4be0d222",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "ahbnr",
"ref": "nixos-24.05", "repo": "nixos-06cb-009a-fingerprint-sensor",
"repo": "nixpkgs",
"type": "github" "type": "github"
} }
}, },
"nixpkgs": {
"locked": {
"lastModified": 1720535198,
"narHash": "sha256-zwVvxrdIzralnSbcpghA92tWu2DV2lwv89xZc8MTrbg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "205fd4226592cc83fd4c0885a3e4c9c400efabb5",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-23.11",
"type": "indirect"
}
},
"nixpkgs-lib": { "nixpkgs-lib": {
"locked": { "locked": {
"lastModified": 1719876945, "lastModified": 1719876945,
@ -480,6 +497,22 @@
"type": "indirect" "type": "indirect"
} }
}, },
"nixpkgs_2": {
"locked": {
"lastModified": 1722087241,
"narHash": "sha256-2ShmEaFi0kJVOEEu5gmlykN5dwjWYWYUJmlRTvZQRpU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8c50662509100d53229d4be607f1a3a31157fa12",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-24.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixvim": { "nixvim": {
"inputs": { "inputs": {
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
@ -599,7 +632,8 @@
"inputs": { "inputs": {
"breezex-cursor": "breezex-cursor", "breezex-cursor": "breezex-cursor",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs", "nixos-06cb-009a-fingerprint-sensor": "nixos-06cb-009a-fingerprint-sensor",
"nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"nixvim": "nixvim", "nixvim": "nixvim",
"other-transcode": "other-transcode", "other-transcode": "other-transcode",

View file

@ -32,6 +32,10 @@
url = "github:logistic-bot/other_video_transcoding_nix"; url = "github:logistic-bot/other_video_transcoding_nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nixos-06cb-009a-fingerprint-sensor = {
url = "github:ahbnr/nixos-06cb-009a-fingerprint-sensor";
};
}; };
outputs = { outputs = {
nixpkgs, nixpkgs,
@ -42,6 +46,7 @@
river-shifttags, river-shifttags,
breezex-cursor, breezex-cursor,
other-transcode, other-transcode,
nixos-06cb-009a-fingerprint-sensor,
... ...
}: let }: let
system = "x86_64-linux"; system = "x86_64-linux";
@ -92,6 +97,9 @@
stylix.nixosModules.stylix stylix.nixosModules.stylix
./stylix.nix ./stylix.nix
nixos-06cb-009a-fingerprint-sensor.nixosModules.open-fprintd
nixos-06cb-009a-fingerprint-sensor.nixosModules.python-validity
]; ];
specialArgs = { specialArgs = {
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system}; pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};

View file

@ -86,10 +86,6 @@
}; };
# fingerprint sensor setup # fingerprint sensor setup
systemd.services.fprintd = { services.open-fprintd.enable = true;
wantedBy = ["multi-user.target"]; services.python-validity.enable = true;
serviceConfig.type = "simple";
};
services.fprintd.enable = true;
} }