94 lines
2.2 KiB
Nix
94 lines
2.2 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
# zeus — Ryzen desktop with AMD graphics.
|
|
# Disk layout is in ./disk.nix.
|
|
# `fileSystems` are derived from it, none declared here.
|
|
let
|
|
steamVrLauncher = "/home/${config.user.name}/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrcompositor-launcher";
|
|
in
|
|
{
|
|
imports = [
|
|
./disk.nix
|
|
]
|
|
++ lib.optional (builtins.pathExists ./hardware-configuration.nix) ./hardware-configuration.nix;
|
|
|
|
nixpkgs.hostPlatform = "x86_64-linux";
|
|
|
|
modules.host.cachyos.enable = true;
|
|
|
|
hardware.graphics = {
|
|
enable = true;
|
|
enable32Bit = true;
|
|
};
|
|
|
|
modules.network.enable = true;
|
|
|
|
services.logind.settings.Login = {
|
|
HandlePowerKey = "ignore";
|
|
HandlePowerKeyLongPress = "ignore";
|
|
};
|
|
|
|
registry.address.zeus.self = "10.23.50.221";
|
|
|
|
hardware.bluetooth = {
|
|
enable = true;
|
|
powerOnBoot = true;
|
|
};
|
|
|
|
modules.monorepo.enable = true;
|
|
modules.shell.herdr.enable = true;
|
|
modules.shell.gitea-axi.enable = true;
|
|
modules.shell.pi.enable = true;
|
|
modules.shell.omp.enable = true;
|
|
|
|
modules.desktop.enable = true;
|
|
modules.desktop.apps.obsidian.enable = true;
|
|
modules.desktop.apps.r2modman.enable = true;
|
|
modules.desktop.emulation.enable = true;
|
|
modules.desktop.apps.signal.enable = true;
|
|
modules.desktop.apps.steam.enable = true;
|
|
modules.desktop.apps.vencord.enable = true;
|
|
|
|
networking.firewall.allowedUDPPorts = [ 10400 ];
|
|
|
|
programs.gamescope.capSysNice = true;
|
|
|
|
systemd.paths.steamvr-capabilities = {
|
|
wantedBy = [ "multi-user.target" ];
|
|
pathConfig = {
|
|
PathChanged = steamVrLauncher;
|
|
Unit = "steamvr-capabilities.service";
|
|
};
|
|
};
|
|
|
|
systemd.services.steamvr-capabilities = {
|
|
wantedBy = [ "multi-user.target" ];
|
|
path = [ pkgs.libcap ];
|
|
script = ''
|
|
setcap cap_sys_nice=eip ${lib.escapeShellArg steamVrLauncher}
|
|
'';
|
|
serviceConfig.Type = "oneshot";
|
|
};
|
|
|
|
home-manager.users.${config.user.name}.wayland.windowManager.hyprland.settings.monitor = [
|
|
{
|
|
output = "HDMI-A-1";
|
|
mode = "1920x1080@120";
|
|
position = "-1080x0";
|
|
scale = 1;
|
|
transform = 3;
|
|
}
|
|
{
|
|
output = "DP-3";
|
|
mode = "2560x1440@239.96";
|
|
position = "0x0";
|
|
scale = 1;
|
|
}
|
|
];
|
|
|
|
}
|