hinata: update config, add fprintd

This commit is contained in:
Kate 2024-11-23 18:42:44 -07:00
parent 37211b4971
commit 357c8d36d0
5 changed files with 34 additions and 8 deletions

View file

@ -319,8 +319,9 @@
modules = linuxOfflineGuiModules [
./nixos/hosts/hinata.nix
./nixos/configs/power-saving.nix
./nixos/configs/vmware.nix
./nixos/configs/cellular.nix
./nixos/configs/power-saving.nix
];
};

View file

@ -32,7 +32,7 @@
system = "x86_64-linux";
protocol = "ssh";
hostName = "trailblazer.kate.ts.polytheon.org";
hostName = "trailblazer.kate.tailnet.polytheon.org";
sshUser = "deprekated";
sshKey = "/home/deprekated/.ssh/id_ed25519";

View file

@ -9,6 +9,7 @@ let
"design" = { id = "XLTC5OX-3ZU6CYZ-MJ7TAY7-ZAMRIE4-SS2JWFB-FC3RJIO-B3BIQFV-J7U53QK"; };
"trailblazer" = { id = "JASHWW7-AYYTQLN-QZ6OEOX-EZK4GPA-OYW5IZS-5KAIIVR-MMXMCHL-OERDBQ2"; };
"aigis" = { id = "VKRQ6Q4-CCLJR2I-ECOWXRE-TANA2QZ-BJIAPCN-FFVJSB4-GYJNS4R-Z3LLHQ5"; };
"hinata" = { id = "2SFRG2A-AZ3XPMN-H3RK2Z6-UXPBPIN-DJN7AMN-JBOY23D-EZGFYNR-HRBI2AY"; };
};
in
{

View file

@ -11,6 +11,25 @@
modulesPath,
...
}:
let
# libfprint with patches for the GPD-provided reader
libfprint-gpd = pkgs.libfprint.overrideAttrs (prev: {
version = "git";
src = pkgs.fetchFromGitHub {
owner = "ericlinagora";
repo = "libfprint-CS9711";
rev = "c242a40fcc51aec5b57d877bdf3edfe8cb4883fd";
sha256 = "sha256-WFq8sNitwhOOS3eO8V35EMs+FA73pbILRP0JoW/UR80=";
};
nativeBuildInputs = prev.nativeBuildInputs ++ (with pkgs; [
opencv
cmake
doctest
]);
});
in
{
system.stateVersion = "23.11";
@ -35,7 +54,7 @@
# Niri configuration for our monitors.
#
home-manager.users.deprekated.programs.niri.settings = {
outputs."eDP-1".scale = 2.0;
outputs."eDP-1".scale = 1.5;
};
# Override stylix font sizes.
@ -51,6 +70,13 @@
}
];
# Fingerprint reader support.
services.fprintd = {
enable = true;
package = pkgs.fprintd.override { libfprint = libfprint-gpd; };
};
#
# Hardware config.
#
@ -92,9 +118,4 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.opengl = {
enable = true;
driSupport = true;
};
}

View file

@ -18,6 +18,9 @@ aliases['rebuild'] = 'sudo nixos-rebuild --flake "/home/deprekated/dotfiles?subm
# Allow non-free for regular commands.
$NIXPKGS_ALLOW_UNFREE=1
# This is too often necessary.
aliases['unfuck'] = 'sudo nix-store --repair-path'
def _nix_locate(args, stdin=None, silent=False):
""" Helper for finding a direct provider of a nix package. """