updates for kanbaru~

This commit is contained in:
Kate 2024-11-09 12:21:37 -07:00
parent 592d2f3b31
commit dda27a3be5
4 changed files with 86 additions and 37 deletions

View file

@ -9,6 +9,7 @@
pkgs,
deprekages,
modulesPath,
fetchFromGitHub,
...
}:
{
@ -48,7 +49,10 @@
services.xserver.videoDrivers = [ "nvidia" ];
# Set up the NVIDIA half of the GPU setup.
system.nixos.tags = ["NVIDIA" "AMDGPU"];
system.nixos.tags = [
"NVIDIA"
"AMDGPU"
];
hardware.nvidia = {
modesetting.enable = true;
@ -83,6 +87,42 @@
hardware.nvidia.prime.sync.enable = lib.mkForce false;
};
# Set up the asus-on-linux services for this machine.
services.asusd = {
enable = true;
enableUserService = true;
};
# Enable fingerprint reader...
services.fprintd = {
enable = false;
# ... and use a weird Goodix-ized fork of libfprintd.
package = pkgs.fprintd.override {
libfprint = pkgs.libfprint.overrideAttrs (prev: {
# Add in the additional dependencies for the Goodix fork...
buildInputs =
prev.buildInputs
++ (with pkgs; [
cmake
openssl
]);
# ... and retarget the package to the fork.
src = pkgs.fetchFromGitHub {
owner = "infinytum";
repo = "libfprint";
rev = "5e14af7f136265383ca27756455f00954eef5db1";
hash = "sha256-MFhPsTF0oLUMJ9BIRZnSHj9VRwtHJxvWv0WT5zz7vDY=";
};
# Manually null out the installCheckPhase.
installCheckPhase = "";
});
};
};
#
# Hardware config.

View file

@ -55,7 +55,7 @@ with pkgs;
niv
# Utils.
_1password
_1password-cli
age
agenix.agenix
atool

View file

@ -205,26 +205,19 @@ config = {
--
-- Font Size Tweaks
--
font_overrides = {
miko = 16,
hinata = 16,
valere = 13,
utol = 13,
trailblazer = 12,
kanbaru = 12,
}
if (hostname == "miko") or (hostname == "hinata") then
config["font_size"] = 16
if font_overrides[hostname] ~= nil then
config.font_size = font_overrides[hostname]
end
if (hostname == "valere") or (hostname == "utol") then
config["font_size"] = 13
end
if (hostname == "trailblazer") then
config["font_size"] = 12
end
if hostname == "tohru" then
config["font_size"] = 17
end
if hostname == "veth" then
config["font_size"] = 32
end
--
-- Increase tab bar spacing.

16
xonsh/kanbaru.xsh Normal file
View file

@ -0,0 +1,16 @@
#
# Dotfile specifics for this machine.
#
# Path
# Note: lower in the list = higher priority
PATH_ADDS = [
"/run/current-system/sw/bin"
"/run/wrappers/bin"
]
# SSH key management.
try_source("includes/add-ssh-keys")
# NixOS compatibility.
try_source("includes/nixos")