2024-08-11 08:29:46 -05:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
enabled,
|
|
|
|
...
|
|
|
|
}:
|
2024-05-06 14:32:00 -05:00
|
|
|
{
|
2024-03-21 11:04:01 -05:00
|
|
|
networking.networkmanager = enabled;
|
|
|
|
services.fwupd = enabled;
|
2024-05-06 14:32:00 -05:00
|
|
|
hardware.bluetooth = enabled // {
|
|
|
|
powerOnBoot = true;
|
|
|
|
};
|
2024-01-23 11:51:13 -06:00
|
|
|
|
2024-08-06 12:38:20 -05:00
|
|
|
services.printing = enabled;
|
|
|
|
|
2024-01-23 11:51:13 -06:00
|
|
|
# https://github.com/NixOS/nixos-hardware/blob/c478b3d56969006e015e55aaece4931f3600c1b2/lenovo/thinkpad/x1/9th-gen/default.nix
|
|
|
|
# https://github.com/NixOS/nixos-hardware/blob/c478b3d56969006e015e55aaece4931f3600c1b2/common/pc/ssd/default.nix
|
2024-03-21 11:04:01 -05:00
|
|
|
services.fstrim = enabled;
|
2024-01-23 11:51:13 -06:00
|
|
|
|
|
|
|
# rtkit is optional but recommended
|
2024-03-21 11:04:01 -05:00
|
|
|
security.rtkit = enabled;
|
2024-05-06 14:32:00 -05:00
|
|
|
services.pipewire = enabled // {
|
|
|
|
audio = enabled;
|
|
|
|
pulse = enabled;
|
|
|
|
alsa = enabled // {
|
|
|
|
support32Bit = true;
|
2024-03-21 11:04:01 -05:00
|
|
|
};
|
2024-05-06 14:32:00 -05:00
|
|
|
};
|
2024-08-11 08:29:46 -05:00
|
|
|
users.users.${config.oizys.user}.extraGroups = [ "audio" ];
|
2024-05-06 14:32:00 -05:00
|
|
|
environment.systemPackages = with pkgs; [ pamixer ];
|
2024-01-23 11:51:13 -06:00
|
|
|
|
2024-02-18 00:41:53 -06:00
|
|
|
# catppuccin/tty move to "module"
|
2024-01-23 11:51:13 -06:00
|
|
|
boot.kernelParams = [
|
|
|
|
"vt.default_red=30,243,166,249,137,245,148,186,88,243,166,249,137,245,148,166"
|
|
|
|
"vt.default_grn=30,139,227,226,180,194,226,194,91,139,227,226,180,194,226,173"
|
|
|
|
"vt.default_blu=46,168,161,175,250,231,213,222,112,168,161,175,250,231,213,200"
|
|
|
|
];
|
|
|
|
|
2024-09-17 16:27:00 -05:00
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
2024-08-27 10:52:32 -05:00
|
|
|
boot.tmp.cleanOnBoot = true;
|
2024-03-27 11:55:06 -05:00
|
|
|
boot.loader = {
|
2024-05-06 14:32:00 -05:00
|
|
|
systemd-boot = enabled // {
|
|
|
|
consoleMode = "max";
|
|
|
|
};
|
2024-03-24 12:27:14 -05:00
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
};
|
2024-01-23 11:51:13 -06:00
|
|
|
|
2024-03-21 11:04:01 -05:00
|
|
|
# don't delete this you foo bar
|
2024-01-23 11:51:13 -06:00
|
|
|
system.stateVersion = "23.11"; # Did you read the comment?
|
|
|
|
}
|