73 lines
1.8 KiB
Nix
73 lines
1.8 KiB
Nix
{ config, pkgs, inputs, lib, nixpkgs-nixos-unstable-and-unfree, ... }: {
|
|
networking.hostName = "foureighty";
|
|
|
|
imports = [
|
|
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-t480
|
|
./hardware-configuration.nix
|
|
./tailscale-foureighty.nix
|
|
./custom-kernel.nix
|
|
../../backups.nix
|
|
../../boot.nix
|
|
../../common.nix
|
|
../../distributed-builds.nix
|
|
../../git
|
|
../../gui
|
|
../../i3
|
|
../../libvirt.nix
|
|
../../mercurial
|
|
../../tailscale.nix
|
|
];
|
|
|
|
fileSystems."/" = { options = [ "compress=zstd" ]; };
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
zramSwap = {
|
|
enable = true;
|
|
algorithm = "zstd";
|
|
memoryPercent = 75;
|
|
};
|
|
|
|
time.timeZone = "Europe/London";
|
|
|
|
virtualisation.kvmgt = {
|
|
enable = true;
|
|
device = "0000:00:02.0";
|
|
};
|
|
hardware.trackpoint.enable = true;
|
|
services.hardware.bolt.enable = true;
|
|
boot.extraModprobeConfig = "options thinkpad_acpi fan_control=1";
|
|
services.thinkfan = {
|
|
enable = true;
|
|
sensors = [
|
|
{
|
|
type = "hwmon";
|
|
query = "/sys/class/hwmon";
|
|
name = "coretemp";
|
|
indices = [ 1 2 3 ];
|
|
}
|
|
{
|
|
type = "hwmon";
|
|
query = "/sys/devices/platform/thinkpad_hwmon/hwmon";
|
|
indices = [ 1 ];
|
|
}
|
|
{
|
|
type = "tpacpi";
|
|
query = "/proc/acpi/ibm/thermal";
|
|
indices = [ 0 ];
|
|
}
|
|
];
|
|
};
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
hardware.video.hidpi.enable = lib.mkDefault true;
|
|
|
|
services.fprintd = { enable = true; };
|
|
|
|
home-manager.users.cyryl = { ... }: {
|
|
imports = [ ../../home-manager/programs/kitty.nix ];
|
|
home.packages = [
|
|
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".bisq-desktop
|
|
];
|
|
};
|
|
}
|