Files
frank-nix/hosts/nero/configuration.nix
T

176 lines
3.7 KiB
Nix

{
pkgs,
inputs,
...
}:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
wivrn-overlay = _final: _prev: {
inherit (unstable) wivrn;
};
in
{
imports = [
../shared/nixos-pc.nix
../../features/kde.nix
../../features/flatpak.nix
];
nixpkgs.overlays = [
wivrn-overlay
inputs.millennium.overlays.default
inputs.cheatengine.overlays.default
];
boot = {
kernelParams = [
"vfio-pci.ids=10de:2782,10de:22bc"
"video=DP=-3:1024x768@85"
];
};
networking.hostName = "nero";
services = {
flatpak = {
packages = [
{
appId = "com.discordapp.Discord";
origin = "flathub";
}
{
appId = "com.github.Matoking.protontricks";
origin = "flathub";
}
{
appId = "com.steamgriddb.SGDBoop";
origin = "flathub";
}
{
appId = "com.vysp3r.ProtonPlus";
origin = "flathub";
}
{
appId = "io.mpv.Mpv";
origin = "flathub";
}
{
appId = "org.ghidra_sre.Ghidra";
origin = "flathub";
}
{
appId = "io.github.ryubing.Ryujinx";
origin = "flathub";
}
{
appId = "io.github.ungoogled_software.ungoogled_chromium";
origin = "flathub";
}
{
appId = "org.gtk.Gtk3theme.Breeze";
origin = "flathub";
}
{
appId = "io.github.Amethyst.ModManager";
origin = "amethyst-mod-manager";
}
];
};
wivrn = {
enable = true;
openFirewall = true;
autoStart = true;
};
moonshine = {
enable = true;
user = "frank";
uid = 1000;
openFirewall = true;
settings = {
application = [
{
title = "Steam";
command = [
"/run/current-system/sw/bin/steam"
"steam://open/bigpicture"
];
}
];
application_scanner = [
{
type = "steam";
library = "$HOME/.local/share/Steam";
command = [
"/run/current-system/sw/bin/steam"
"-bigpicture"
"steam://rungameid/{game_id}"
];
}
];
};
};
};
programs = {
gamemode.enable = true;
steam = {
enable = true;
package = pkgs.millennium-steam;
remotePlay.openFirewall = true;
extraPackages = [ pkgs.hidapi ];
};
};
nix = {
distributedBuilds = true;
settings.builders-use-substitutes = true;
buildMachines = [
{
hostName = "vergil.cfl.rr.com";
sshUser = "remotebuild";
sshKey = "/root/.ssh/id_rsa";
system = pkgs.stdenv.hostPlatform.system;
protocol = "ssh-ng";
maxJobs = 24;
speedFactor = 2;
mandatoryFeatures = [ ];
supportedFeatures = [
"nixos-test"
"benchmark"
"big-parallel"
"kvm"
];
}
];
};
environment = {
sessionVariables = {
AVALONIA_SCREEN_SCALE_FACTORS = "HDMI-A-1=2.0;DP-1=2.0;DP-2=2.0;DP-3=2.0";
};
systemPackages = with pkgs; [
qimgv
zathura
mangohud
gamescope
gamescope-wsi
cheatengine
qbittorrent
inputs.scopebuddy.packages.${pkgs.stdenv.hostPlatform.system}.default
(callPackage ../../packages/xivlauncher/package.nix { })
(callPackage ../../packages/aseprite/package.nix { })
(callPackage ../../packages/aseprite-thumbnailer-kde/package.nix { inherit unstable; })
(callPackage ../../packages/undertale-mod-tool/package.nix { })
];
};
}