Enable RetroArch on Steam Deck

This commit is contained in:
Invariantspace 2024-03-03 00:11:51 -08:00
parent 202e5c098a
commit 8534c96c66
17 changed files with 127 additions and 113 deletions

View file

@ -6,10 +6,13 @@
{
# Configuration boot
boot.loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
timeout = 0;
boot = {
initrd.systemd.enable = true;
loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
timeout = 0;
};
};
# Change secrets file

View file

@ -4,15 +4,15 @@
imports = with inputs; [
disko.nixosModules.default
jovian.nixosModules.default
] ++ [
../../common
./configuration.nix
./disko.nix
./gui.nix
./hardware-configuration.nix
./locale.nix
./network.nix
./syncthing.nix
./tailscale.nix
./zfs.nix
../../common
];
}

View file

@ -1,18 +1,30 @@
{ config, ... }:
{ config, inputs, pkgs, ... }:
let usr = config.constants.userName; in {
let
usr = config.constants.userName;
jovianPkgs = pkgs.extend inputs.jovian.overlays.default;
in
{
home-manager.users.${usr}.home.packages = with jovianPkgs; [
(retroarch.override {
cores = with libretro; [
pcsx2
ppsspp
];
})
yuzu
];
jovian = {
decky-loader = {
enable = true;
user = usr;
};
devices.steamdeck.enable = true;
steam = {
enable = true;
autoStart = true;
desktopSession = "plasma";
desktopSession = "gamescope-wayland";
user = usr;
};
};
services.xserver = {
enable = true;
desktopManager.plasma6.enable = true;
};
}

View file

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
# Configure default fonts
fonts = {
fontconfig.defaultFonts = {
serif = [ "Noto Serif" "Noto Serif CJK SC" ];
sansSerif = [ "Inter" "Noto Sans CJK SC" ];
monospace = [ "Iosevka" "Noto Sans Mono CJK SC" ];
};
packages = with pkgs; [
sarasa-gothic
noto-fonts-emoji
];
};
}

View file

@ -1,10 +1,15 @@
{ ... }:
{ config, ... }:
{
networking = {
firewall.trustedInterfaces = [ config.services.tailscale.interfaceName ];
hostId = "74247225";
networkmanager.enable = true;
networkmanager = {
enable = true;
wifi.backend = "iwd";
};
nftables.enable = true;
wireless.iwd.enable = true;
};
services.openssh.enable = true;
}

View file

@ -1,18 +1,9 @@
{ config, ... }:
{ ... }:
{
services.syncthing = let home = config.constants.homeDir; in {
services.syncthing = {
enable = true;
configDir = "${home}/.config/syncthing";
dataDir = "${home}/.local/share/syncthing";
openDefaultPorts = true;
overrideDevices = true;
overrideFolders = true;
# settings = let pc = "blitzar"; in {
# devices.${pc} = {
# name = pc;
# id = "KGCBCIZ-GG6KMQ2-FLK5BWW-GLCEDML-5LCI24S-UKO5UWL-HWNCPYX-ZWWD5AQ";
# };
# folders.music = {
# enable = true;
# devices = [ pc ];
@ -22,6 +13,5 @@
# type = "receiveonly";
# };
# };
user = config.constants.userName;
};
}