67 lines
1.4 KiB
Nix
67 lines
1.4 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
inputs,
|
|
lib,
|
|
system,
|
|
...
|
|
}: {
|
|
networking.hostName = "foryog";
|
|
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
../../backups.nix
|
|
../../boot.nix
|
|
../../git
|
|
../../gnome
|
|
../../gui
|
|
../../helix
|
|
../../mercurial
|
|
../../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"];
|
|
tmp.cleanOnBoot = true;
|
|
binfmt.emulatedSystems = ["armv7l-linux" "aarch64-linux"];
|
|
plymouth = {
|
|
enable = true;
|
|
logo = ./boot.png;
|
|
};
|
|
};
|
|
|
|
zramSwap = {
|
|
enable = true;
|
|
algorithm = "zstd";
|
|
memoryPercent = 75;
|
|
};
|
|
|
|
time.timeZone = "Europe/London";
|
|
|
|
hardware = {
|
|
trackpoint.enable = true;
|
|
keyboard.qmk.enable = true;
|
|
opengl.extraPackages = with pkgs; [libva];
|
|
};
|
|
|
|
services.udev.packages = [pkgs.qmk-udev-rules];
|
|
programs.ccache.enable = true;
|
|
programs.steam.enable = true;
|
|
|
|
home-manager.users.cyryl = {...}: {
|
|
imports = [
|
|
../../home-manager/programs/kitty.nix
|
|
];
|
|
home.packages =
|
|
(with inputs.nixpkgs-master.legacyPackages."${system}"; [bisq-desktop zed-editor])
|
|
++ (with pkgs; [lutris])
|
|
++ (with inputs.endless-sky.legacyPackages."${system}"; [endless-sky]);
|
|
};
|
|
}
|