dotfiles/nixos/boxes/foureighty/default.nix

70 lines
1.6 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
2022-04-02 08:14:30 +01:00
./thermal.nix
../../gfx-intel-dri2.nix
2022-03-04 09:21:04 +00:00
../../backups.nix
2020-07-25 09:56:03 +01:00
../../boot.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
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
2021-12-04 10:43:02 +00:00
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
2022-10-25 22:16:29 +01:00
boot.plymouth = {
enable = true;
logo = ./boot.png;
};
2021-12-04 10:43:02 +00:00
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;
2021-07-18 18:53:01 +01:00
hardware.video.hidpi.enable = lib.mkDefault true;
services.tp-auto-kbbl.enable = true;
services.xserver = {
libinput = {
enable = true;
touchpad = {
tapping = true;
naturalScrolling = false;
middleEmulation = false;
disableWhileTyping = true;
buttonMapping = "1 0 3 4 5 6 7 8 9 10";
};
mouse = {
middleEmulation = false;
buttonMapping = "1 0 3 4 5 6 7 8 9 10";
};
};
2021-07-18 18:53:01 +01:00
};
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-07-16 16:15:58 +01:00
imports = [ ../../home-manager/programs/alacritty.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
}