dotfiles/nixos/boxes/foureighty/default.nix

85 lines
2 KiB
Nix
Raw Normal View History

2023-01-04 09:51:26 +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
2022-03-04 09:21:04 +00:00
../../backups.nix
2020-07-25 09:56:03 +01:00
../../boot.nix
../../distributed-builds.nix
2023-01-12 08:20:08 +00:00
../../gfx-intel-dri2.nix
2022-03-04 09:21:04 +00:00
../../git
2023-01-12 08:20:08 +00:00
../../gnome
2020-07-25 10:09:10 +01:00
../../gui
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
2023-01-04 09:51:26 +00:00
fileSystems."/" = { options = [ "compress=zstd" ]; };
2021-06-26 21:30:07 +01:00
2023-01-04 09:51:26 +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.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";
};
};
};
2023-01-04 09:51:26 +00:00
services.fprintd = { enable = true; };
2022-12-12 19:41:11 +00:00
programs.ccache.enable = true;
2023-01-04 09:51:26 +00:00
hardware.opengl.extraPackages = with pkgs; [ libva ];
programs.steam.enable = true;
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-runtime"
"steam-run"
2023-01-29 08:31:13 +00:00
"vscode-with-extensions"
"vscode"
2023-01-04 09:51:26 +00:00
];
2019-07-06 12:03:30 +01:00
2023-01-04 09:51:26 +00:00
home-manager.users.cyryl = { ... }: {
2023-01-29 08:31:13 +00:00
imports =
[ ../../home-manager/programs/alacritty.nix ../../gui/vscode.nix ];
home.packages =
2023-03-04 06:49:38 +00:00
with inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux";
2023-03-04 07:19:28 +00:00
[ bisq-desktop ] ++
(with pkgs; [ lutris ])
++ (with inputs.endless-sky.legacyPackages."x86_64-linux";
[ endless-sky ]);
2021-05-30 20:41:33 +01:00
};
2020-02-18 19:26:04 +00:00
}