dotfiles/nixos/boxes/foryog/default.nix

88 lines
1.9 KiB
Nix

{
config,
pkgs,
inputs,
lib,
system,
...
}: {
networking.hostName = "foryog";
imports = [
./hardware-configuration.nix
../../backups.nix
../../boot.nix
../../distributed-builds.nix
../../emacs
../../git
../../gnome
../../gui
../../gui/vscode
../../libvirt.nix
../../mercurial
../../sdr.nix
../../vim
../../zsh
];
fileSystems."/" = {options = ["compress=zstd"];};
services.restic.backups.home-to-b2 = {
repository = lib.mkForce "b2:cyplo-restic-foureighty:/";
};
boot.kernelParams = ["initcall_debug" ''dyndbg="file suspend.c +p"'' "no_console_suspend"];
boot.tmp.cleanOnBoot = true;
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;
services.xserver = {
libinput = {
enable = true;
touchpad = {
tapping = true;
naturalScrolling = false;
middleEmulation = false;
disableWhileTyping = true;
};
};
};
services.fprintd = {enable = true;};
programs.ccache.enable = true;
hardware.opengl.extraPackages = with pkgs; [libva];
programs.steam.enable = true;
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"spotify"
"steam"
"steam-original"
"steam-runtime"
"steam-run"
"vscode-extension-ms-vscode-cpptools"
"vscode-with-extensions"
"vscode"
];
home-manager.users.cyryl = {...}: {
imports = [
../../home-manager/programs/kitty.nix
../../home-manager/programs/helix.nix
];
home.packages =
(with inputs.nixpkgs-master.legacyPackages."${system}"; [bisq-desktop])
++ (with pkgs; [lutris])
++ (with inputs.endless-sky.legacyPackages."${system}"; [endless-sky]);
};
}