dotfiles/nixos/boxes/foureighty/default.nix

74 lines
1.8 KiB
Nix
Raw Normal View History

2022-03-10 12:25:23 +00:00
{ config, pkgs, inputs, lib, nixpkgs-nixos-unstable-and-unfree, ... }: {
2019-07-07 12:08:00 +01:00
networking.hostName = "foureighty";
2019-12-24 19:13:52 +00:00
2020-07-25 09:56:03 +01:00
imports = [
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-t480
2020-07-25 09:56:03 +01:00
./hardware-configuration.nix
./tailscale-foureighty.nix
2022-03-06 20:18:50 +00:00
./custom-kernel.nix
2022-03-04 09:21:04 +00:00
../../backups.nix
2020-07-25 09:56:03 +01:00
../../boot.nix
../../common.nix
../../distributed-builds.nix
2022-03-04 09:21:04 +00:00
../../git
2020-07-25 10:09:10 +01:00
../../gui
2020-08-16 11:39:21 +01:00
../../i3
2022-03-04 09:21:04 +00:00
../../libvirt.nix
2020-08-01 10:16:16 +01:00
../../mercurial
2022-03-04 09:21:04 +00:00
../../tailscale.nix
2020-07-25 09:56:03 +01:00
];
2020-02-22 11:11:10 +00:00
2022-03-10 12:25:23 +00:00
fileSystems."/" = { options = [ "compress=zstd" ]; };
2021-06-26 21:30:07 +01:00
2022-03-02 12:45:32 +00:00
boot.kernelPackages = pkgs.linuxPackages_latest;
2021-12-04 10:43:02 +00:00
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
zramSwap = {
enable = true;
algorithm = "zstd";
memoryPercent = 75;
};
2020-02-18 19:26:04 +00:00
time.timeZone = "Europe/London";
2019-07-05 23:11:21 +01:00
2021-10-10 09:09:38 +01:00
virtualisation.kvmgt = {
enable = true;
device = "0000:00:02.0";
};
2020-07-25 09:56:03 +01:00
hardware.trackpoint.enable = true;
2020-02-18 19:26:04 +00:00
services.hardware.bolt.enable = true;
2022-04-01 21:24:29 +01:00
boot.extraModprobeConfig = "options thinkpad_acpi fan_control=1";
2022-04-01 21:43:03 +01:00
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";
2021-07-18 18:53:01 +01:00
hardware.video.hidpi.enable = lib.mkDefault true;
2022-03-10 12:25:23 +00:00
services.fprintd = { enable = true; };
2019-07-06 12:03:30 +01:00
2021-11-22 19:32:26 +00:00
home-manager.users.cyryl = { ... }: {
2022-03-10 12:25:23 +00:00
imports = [ ../../home-manager/programs/kitty.nix ];
home.packages = [
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".bisq-desktop
];
2021-05-30 20:41:33 +01:00
};
2020-02-18 19:26:04 +00:00
}