2024-01-23 11:51:13 -06:00
|
|
|
{
|
|
|
|
pkgs,
|
2024-01-28 23:19:30 -06:00
|
|
|
mkRune,
|
2024-01-23 11:51:13 -06:00
|
|
|
...
|
2024-02-08 12:43:28 -06:00
|
|
|
}: {
|
2024-01-23 11:51:13 -06:00
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
services.printing.enable = true;
|
|
|
|
services.fwupd.enable = true;
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
hardware.bluetooth.powerOnBoot = true;
|
|
|
|
|
|
|
|
# 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
|
|
|
|
services.fstrim.enable = true;
|
|
|
|
|
|
|
|
# rtkit is optional but recommended
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
audio.enable = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
pamixer
|
|
|
|
];
|
|
|
|
|
2024-02-18 00:41:53 -06:00
|
|
|
services.getty.greetingLine = mkRune {
|
2024-02-19 10:54:37 -06:00
|
|
|
rune = "othalan";
|
|
|
|
runeKind = "ascii";
|
|
|
|
};
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
networking.hostName = "othalan";
|
|
|
|
time.timeZone = "US/Central";
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
|
|
|
|
# This option defines the first version of NixOS you have installed on this particular machine,
|
|
|
|
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
|
|
|
|
#
|
|
|
|
# Most users should NEVER change this value after the initial install, for any reason,
|
|
|
|
# even if you've upgraded your system to a new NixOS release.
|
|
|
|
#
|
|
|
|
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
|
|
|
|
# so changing it will NOT upgrade your system.
|
|
|
|
#
|
|
|
|
# This value being lower than the current NixOS release does NOT mean your system is
|
|
|
|
# out of date, out of support, or vulnerable.
|
|
|
|
#
|
|
|
|
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
|
|
|
|
# and migrated your data accordingly.
|
|
|
|
#
|
|
|
|
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
|
|
|
system.stateVersion = "23.11"; # Did you read the comment?
|
|
|
|
}
|