dotfiles/nixos/boxes/foryog/default.nix

63 lines
1.6 KiB
Nix
Raw Normal View History

2024-03-16 08:57:55 +00:00
{ config, pkgs, inputs, lib, system, ... }: {
networking.hostName = "foryog";
imports = [
./hardware-configuration.nix
../../backups.nix
../../boot.nix
../../git
2024-03-16 08:57:55 +00:00
../../kde
2023-06-19 21:34:51 +01:00
../../vim
../../zsh
];
2024-03-16 08:57:55 +00:00
fileSystems."/" = { options = [ "compress=zstd" ]; };
services.restic.backups.home-to-b2 = {
2023-08-13 17:00:41 +01:00
repository = lib.mkForce "b2:cyplo-restic-foureighty:/";
};
2024-03-16 08:57:55 +00: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;
2024-03-16 08:57:55 +00:00
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
boot.plymouth = {
enable = true;
logo = ./boot.png;
};
zramSwap = {
enable = true;
algorithm = "zstd";
memoryPercent = 75;
};
time.timeZone = "Europe/London";
hardware.trackpoint.enable = true;
2024-02-04 17:32:24 +00:00
hardware.keyboard.qmk.enable = true;
2024-03-16 08:57:55 +00:00
services.udev.packages = [ pkgs.qmk-udev-rules ];
services.fprintd = { enable = true; };
programs.ccache.enable = true;
2024-03-16 08:57:55 +00:00
hardware.opengl.extraPackages = with pkgs; [ libva ];
programs.steam.enable = true;
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
2023-08-12 06:47:07 +01:00
"spotify"
"steam"
"steam-original"
"steam-runtime"
"steam-run"
"vscode-extension-ms-vscode-cpptools"
"vscode-with-extensions"
"vscode"
];
2024-03-16 08:57:55 +00:00
home-manager.users.cyryl = { ... }: {
imports = [ ../../home-manager/programs/kitty.nix ];
2023-12-03 13:52:12 +00:00
home.packages =
2024-03-16 08:57:55 +00:00
(with inputs.nixpkgs-master.legacyPackages."${system}"; [ bisq-desktop ])
++ (with pkgs; [ lutris ])
++ (with inputs.endless-sky.legacyPackages."${system}"; [ endless-sky ]);
};
}