nix/packages/hosts/flipflop.nix
Daniel Flanagan 7b1518042c
All checks were successful
/ build-host (map[host:beefcake]) (push) Successful in 38s
/ build-host (map[host:dragon]) (push) Successful in 46s
/ build-host (map[host:flipflop]) (push) Successful in 38s
/ build-host (map[host:foxtrot]) (push) Successful in 45s
/ build-host (map[host:rascal]) (push) Successful in 19s
/ build-host (map[host:router]) (push) Successful in 27s
/ build-devshell (push) Successful in 17s
/ flake-check (push) Successful in 4m15s
feat: enable family account on flipflop
2025-03-25 13:00:24 -05:00

123 lines
2.5 KiB
Nix

{
diskoConfigurations,
hardware,
pkgs,
lib,
config,
...
}:
{
system.stateVersion = "24.11";
networking = {
hostName = "flipflop";
wifi.enable = true;
};
boot.loader.systemd-boot.enable = true;
services.fprintd = {
# TODO: am I missing a driver? see arch wiki for this h/w
enable = false;
# tod.enable = true;
# tod.driver = pkgs.libfprint-2-tod1-goodix;
};
environment.systemPackages =
#with pkgs;
[ ];
# https://wiki.archlinux.org/title/Lenovo_ThinkPad_X1_Yoga_(Gen_3)#Using_acpi_call
systemd.services.activate-touch-hack = {
enable = true;
description = "Touch wake Thinkpad X1 Yoga 3rd gen hack";
unitConfig = {
After = [
"suspend.target"
"hibernate.target"
"hybrid-sleep.target"
"suspend-then-hibernate.target"
];
};
serviceConfig = {
ExecStart = ''
/bin/sh -c "echo '\\_SB.PCI0.LPCB.EC._Q2A' > /proc/acpi/call"
'';
};
wantedBy = [
"suspend.target"
"hibernate.target"
"hybrid-sleep.target"
"suspend-then-hibernate.target"
];
};
boot.initrd.availableKernelModules = [
"xhci_pci"
"nvme"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [
"kvm-intel"
"acpi_call"
];
boot.extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
boot.kernelParams = [ "mem_sleep_default=deep" ];
hardware = {
graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
intel-media-driver
intel-ocl
intel-vaapi-driver
];
};
sensor.iio.enable = true; # auto-rotation in tablet mode
};
hardware.bluetooth = {
enable = true;
powerOnBoot = false;
};
imports = with hardware; [
(diskoConfigurations.standardWithHibernateSwap {
disk = "/dev/nvme0n1";
swapSize = "16G";
})
common-cpu-intel
common-pc-ssd
];
lyte.desktop.enable = true;
family-account.enable = true;
home-manager.users.daniel = {
lyte = {
shell = {
enable = true;
learn-jujutsu-not-git.enable = true;
};
desktop.enable = true;
};
home = {
stateVersion = "24.11";
file.".config/easyeffects/output" = {
enable = true;
source = fetchGit {
url = "https://github.com/ceiphr/ee-framework-presets";
rev = "27885fe00c97da7c441358c7ece7846722fd12fa";
};
};
};
services.easyeffects = {
enable = true;
preset = "philonmetal";
};
};
}