Various improvements to ll-latitude-e5591
This commit is contained in:
parent
4ebb7a41ff
commit
535b8c5230
|
@ -16,7 +16,7 @@
|
||||||
esptool
|
esptool
|
||||||
stlink
|
stlink
|
||||||
stlink-gui
|
stlink-gui
|
||||||
(kicad-small.override { addons=[kicadAddons.kikit kicadAddons.kikit-library]; })
|
(pkgs-unstable.kicad.override { addons=[pkgs-unstable.kicadAddons.kikit pkgs-unstable.kicadAddons.kikit-library]; })
|
||||||
kikit
|
kikit
|
||||||
screen
|
screen
|
||||||
prusa-slicer
|
prusa-slicer
|
||||||
|
|
|
@ -2,16 +2,20 @@
|
||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
# Enable OpenGL
|
# Enable OpenGL
|
||||||
hardware.graphics.enable = true;
|
hardware.graphics.enable = true;
|
||||||
|
hardware.graphics.enable32Bit = true;
|
||||||
|
|
||||||
# Load nvidia driver for Xorg and Wayland
|
# Load nvidia driver for Xorg and Wayland
|
||||||
services.xserver.videoDrivers = ["nvidia"];
|
services.xserver.videoDrivers = ["nvidia"];
|
||||||
|
|
||||||
|
# Fix stupid UI scaling bug
|
||||||
|
services.xserver.dpi = 96;
|
||||||
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
# Modesetting is required.
|
# Modesetting is required.
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
|
|
||||||
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
|
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
|
||||||
powerManagement.enable = true;
|
powerManagement.enable = false;
|
||||||
|
|
||||||
# Fine-grained power management. Turns off GPU when not in use.
|
# Fine-grained power management. Turns off GPU when not in use.
|
||||||
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
|
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Basic Utilities
|
# Basic Utilities
|
||||||
bc pv killall unzip unrar-wrapper unar units
|
bc pv killall zip unzip unrar-wrapper unar units
|
||||||
|
|
||||||
# System Monitoring / TUI QoL Tools
|
# System Monitoring / TUI QoL Tools
|
||||||
btop iotop tmux byobu
|
btop iotop tmux byobu
|
||||||
|
|
|
@ -24,12 +24,14 @@
|
||||||
|
|
||||||
# Dotspace
|
# Dotspace
|
||||||
../secrets/dotspace.nix
|
../secrets/dotspace.nix
|
||||||
|
../secrets/dotspace_shares.nix
|
||||||
../features/stronghold-binary-cache.nix
|
../features/stronghold-binary-cache.nix
|
||||||
|
|
||||||
# Additional Software
|
# Additional Software
|
||||||
../features/embedded.nix
|
../features/embedded.nix
|
||||||
../features/hardware/rtl-sdr.nix
|
../features/hardware/rtl-sdr.nix
|
||||||
../features/hardware/printing.nix
|
../features/hardware/printing.nix
|
||||||
|
../tweaks/aarch64-crosscompile.nix
|
||||||
../features/virtualization/docker.nix
|
../features/virtualization/docker.nix
|
||||||
../features/virtualization/libvirt-host.nix
|
../features/virtualization/libvirt-host.nix
|
||||||
|
|
||||||
|
@ -39,12 +41,32 @@
|
||||||
../features/factorio.nix
|
../features/factorio.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
specialisation = {
|
||||||
|
nvidia.configuration = {
|
||||||
|
system.nixos.tags = [ "nvidia" ];
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
../features/gpu/nvidia.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
hardware.nvidia.prime = {
|
||||||
|
sync.enable = true;
|
||||||
|
intelBusId = "PCI:0:2:0";
|
||||||
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
|
||||||
|
boot.initrd.kernelModules = [ "i915" ]; # Makes external monitors boot better
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
"i915.enable_guc=2"
|
"i915.enable_guc=2"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.autorandr.enable = true;
|
||||||
|
services.udev.packages = with pkgs; [ autorandr ];
|
||||||
|
|
||||||
# TODO: Not quite enough for hibernation while zram is still enabled
|
# TODO: Not quite enough for hibernation while zram is still enabled
|
||||||
#swapDevices = [{
|
#swapDevices = [{
|
||||||
# device = "/var/lib/swapfile";
|
# device = "/var/lib/swapfile";
|
||||||
|
@ -57,7 +79,30 @@
|
||||||
# Tinc Stuff
|
# Tinc Stuff
|
||||||
# TODO: Less hacky
|
# TODO: Less hacky
|
||||||
|
|
||||||
services.tinc.networks.mlaga97space = {
|
networking.firewall.allowedTCPPorts = [ 655 ];
|
||||||
|
networking.firewall.allowedUDPPorts = [ 655 ];
|
||||||
|
|
||||||
|
networking.interfaces."tinc.dotspace".ipv4 = {
|
||||||
|
addresses = [{
|
||||||
|
address = "10.86.84.250";
|
||||||
|
prefixLength = 32;
|
||||||
|
}];
|
||||||
|
routes = [{
|
||||||
|
address = "10.86.84.0";
|
||||||
|
prefixLength = 24;
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Start the unit for adding addresses if Tinc is started
|
||||||
|
systemd.services."tinc.dotspace".wants = [ "network-addresses-tinc.dotspace.service" ];
|
||||||
|
|
||||||
|
# Stop the unit for adding addresses if Tinc is stopped or restarted
|
||||||
|
systemd.services."network-addresses-tinc.dotspace".partOf = [ "tinc.dotspace.service" ];
|
||||||
|
|
||||||
|
# Start the unit for adding addresses after the Tinc device is added
|
||||||
|
systemd.services."network-addresses-tinc.dotspace".after = [ "sys-subsystem-net-devices-tinc.dotspace.device" ];
|
||||||
|
|
||||||
|
services.tinc.networks.dotspace = {
|
||||||
name = "ll_latitude_e5591";
|
name = "ll_latitude_e5591";
|
||||||
ed25519PrivateKeyFile = "/root/tinc/mlaga97space_ed25519_key.priv";
|
ed25519PrivateKeyFile = "/root/tinc/mlaga97space_ed25519_key.priv";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue