2023-06-22 09:34:38 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
lib,
|
2023-12-03 13:52:12 +00:00
|
|
|
system,
|
2023-06-22 09:34:38 +01:00
|
|
|
...
|
|
|
|
}: {
|
2023-04-07 21:48:47 +01:00
|
|
|
networking.hostName = "foryog";
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
../../backups.nix
|
|
|
|
../../boot.nix
|
2023-06-23 07:31:52 +01:00
|
|
|
../../emacs
|
2023-04-07 21:48:47 +01:00
|
|
|
../../git
|
|
|
|
../../gnome
|
|
|
|
../../gui
|
2024-01-13 20:23:10 +00:00
|
|
|
../../gui/vscode
|
2023-04-07 21:48:47 +01:00
|
|
|
../../libvirt.nix
|
|
|
|
../../mercurial
|
2023-06-19 21:34:51 +01:00
|
|
|
../../vim
|
|
|
|
../../zsh
|
2023-04-07 21:48:47 +01:00
|
|
|
];
|
|
|
|
|
2023-06-22 09:34:38 +01:00
|
|
|
fileSystems."/" = {options = ["compress=zstd"];};
|
2023-04-07 21:48:47 +01:00
|
|
|
|
2023-07-03 18:25:15 +01:00
|
|
|
services.restic.backups.home-to-b2 = {
|
2023-08-13 17:00:41 +01:00
|
|
|
repository = lib.mkForce "b2:cyplo-restic-foureighty:/";
|
2023-07-03 18:25:15 +01:00
|
|
|
};
|
2023-06-22 09:34:38 +01:00
|
|
|
boot.kernelParams = ["initcall_debug" ''dyndbg="file suspend.c +p"'' "no_console_suspend"];
|
2023-06-21 09:11:21 +01:00
|
|
|
boot.tmp.cleanOnBoot = true;
|
2023-06-22 09:34:38 +01:00
|
|
|
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
2023-04-07 21:48:47 +01:00
|
|
|
boot.plymouth = {
|
|
|
|
enable = true;
|
|
|
|
logo = ./boot.png;
|
|
|
|
};
|
|
|
|
|
|
|
|
zramSwap = {
|
|
|
|
enable = true;
|
|
|
|
algorithm = "zstd";
|
|
|
|
memoryPercent = 75;
|
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "Europe/London";
|
|
|
|
|
|
|
|
hardware.trackpoint.enable = true;
|
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
libinput = {
|
|
|
|
enable = true;
|
|
|
|
touchpad = {
|
|
|
|
tapping = true;
|
|
|
|
naturalScrolling = false;
|
|
|
|
middleEmulation = false;
|
|
|
|
disableWhileTyping = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-06-22 09:34:38 +01:00
|
|
|
services.fprintd = {enable = true;};
|
2023-04-07 21:48:47 +01:00
|
|
|
programs.ccache.enable = true;
|
2023-06-22 09:34:38 +01:00
|
|
|
hardware.opengl.extraPackages = with pkgs; [libva];
|
2023-04-07 21:48:47 +01:00
|
|
|
programs.steam.enable = true;
|
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
|
|
builtins.elem (lib.getName pkg) [
|
2023-08-12 06:47:07 +01:00
|
|
|
"spotify"
|
2023-04-07 21:48:47 +01:00
|
|
|
"steam"
|
|
|
|
"steam-original"
|
|
|
|
"steam-runtime"
|
|
|
|
"steam-run"
|
2023-06-22 09:34:38 +01:00
|
|
|
"vscode-extension-ms-vscode-cpptools"
|
2023-04-07 21:48:47 +01:00
|
|
|
"vscode-with-extensions"
|
|
|
|
"vscode"
|
|
|
|
];
|
|
|
|
|
2023-06-22 09:34:38 +01:00
|
|
|
home-manager.users.cyryl = {...}: {
|
|
|
|
imports = [
|
|
|
|
../../home-manager/programs/kitty.nix
|
|
|
|
../../home-manager/programs/helix.nix
|
|
|
|
];
|
2023-12-03 13:52:12 +00:00
|
|
|
home.packages =
|
|
|
|
(with inputs.nixpkgs-master.legacyPackages."${system}"; [bisq-desktop])
|
2023-06-22 09:34:38 +01:00
|
|
|
++ (with pkgs; [lutris])
|
2023-12-03 13:52:12 +00:00
|
|
|
++ (with inputs.endless-sky.legacyPackages."${system}"; [endless-sky]);
|
2023-04-07 21:48:47 +01:00
|
|
|
};
|
|
|
|
}
|