54 lines
1.3 KiB
Nix
54 lines
1.3 KiB
Nix
{
|
|
upkgs,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
hardware.enableAllFirmware = true;
|
|
|
|
# Connectivity
|
|
networking.networkmanager.enable = true;
|
|
hardware.bluetooth.enable = true;
|
|
|
|
# System76
|
|
hardware.system76.enableAll = true;
|
|
|
|
services = {
|
|
# https://discourse.nixos.org/t/very-high-fan-noises-on-nixos-using-a-system76-thelio/23875/10
|
|
# Fixes insane jet speed fan noise
|
|
power-profiles-daemon.enable = false;
|
|
tlp = {
|
|
enable = true;
|
|
# settings = {
|
|
# CPU_BOOST_ON_AC = 1;
|
|
# CPU_BOOST_ON_BAT = 0;
|
|
# CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
|
# CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
|
# STOP_CHARGE_THRESH_BAT0 = 95;
|
|
# };
|
|
};
|
|
};
|
|
|
|
# Also allow this key to work for root user, this will let us use this as a remote builder easier
|
|
users.users.root.openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJN2nsLmAlF6zj5dEBkNSJaqcCya+aB6I0imY8Q5Ew0S nix2lio"
|
|
];
|
|
# Allow emulation of aarch64-linux binaries for cross compiling
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
lua
|
|
qdirstat
|
|
ffmpeg-full
|
|
appimage-run
|
|
nodejs_24
|
|
foot
|
|
vlc
|
|
upkgs.ladybird
|
|
google-chrome
|
|
trilium-desktop
|
|
dig
|
|
traceroute
|
|
# opensnitch-ui
|
|
];
|
|
}
|