2023-08-13 17:00:41 +01: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 = [
|
2021-06-26 21:20:30 +01:00
|
|
|
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
|
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
|
2023-03-05 10:13:10 +00:00
|
|
|
../../vim
|
2023-03-26 10:49:37 +01:00
|
|
|
../../sdr.nix
|
2020-07-25 09:56:03 +01:00
|
|
|
];
|
2020-02-22 11:11:10 +00:00
|
|
|
|
2023-08-13 17:00:41 +01:00
|
|
|
fileSystems."/" = {options = ["compress=zstd"];};
|
2021-06-26 21:30:07 +01:00
|
|
|
|
2023-08-13 17:00:41 +01: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
|
|
|
|
2021-06-26 21:20:30 +01: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;
|
2024-04-27 11:33:38 +01:00
|
|
|
services = {
|
|
|
|
hardware.bolt.enable = true;
|
2022-10-31 19:46:42 +00:00
|
|
|
|
2024-04-27 11:33:38 +01:00
|
|
|
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";
|
|
|
|
};
|
2022-10-31 19:46:42 +00:00
|
|
|
};
|
|
|
|
};
|
2024-04-27 11:33:38 +01:00
|
|
|
fprintd = {enable = true;};
|
2022-10-31 19:46:42 +00:00
|
|
|
};
|
2024-04-27 11:33:38 +01:00
|
|
|
|
2022-12-12 19:41:11 +00:00
|
|
|
programs.ccache.enable = true;
|
2023-08-13 17:00:41 +01:00
|
|
|
hardware.opengl.extraPackages = with pkgs; [libva];
|
2023-01-04 09:51:26 +00:00
|
|
|
programs.steam.enable = true;
|
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
|
|
builtins.elem (lib.getName pkg) [
|
2023-08-12 14:55:21 +01:00
|
|
|
"spotify"
|
2023-01-04 09:51:26 +00:00
|
|
|
"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-08-13 17:00:41 +01:00
|
|
|
home-manager.users.cyryl = {...}: {
|
|
|
|
imports = [../../home-manager/programs/alacritty.nix ../../gui/vscode.nix];
|
|
|
|
home.packages = with inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux";
|
2024-11-03 13:44:24 +00:00
|
|
|
[]
|
2023-08-13 17:00:41 +01:00
|
|
|
++ (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
|
|
|
}
|