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

@ -4,7 +4,7 @@
imports = with inputs; [
disko.nixosModules.default
hardware.nixosModules.asus-zephyrus-ga402
] ++ [
../../common
./audio.nix
./configuration.nix
./device.nix
@ -16,6 +16,5 @@
./syncthing.nix
./tailscale.nix
./zfs.nix
../../common
];
}

View file

@ -5,7 +5,6 @@ let usr = config.constants.userName; in {
let xdgCfg = config.xdg; in {
gtk = {
enable = true;
gtk2.configLocation = "${xdgCfg.configHome}/gtk-2.0/gtkrc";
theme = {
name = "Sweet-Dark";
package = pkgs.sweet;

View file

@ -1,28 +1,14 @@
{ 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 media = "nebula"; in {
devices.${media} = {
name = media;
id = "NJXA5XS-2PSWECD-UHBV7JH-IR2RSWY-PRUPFTZ-AHL7IN6-RXSLZKB-2FUNRQH";
};
folders.music = {
enable = true;
devices = [ media ];
id = "Music";
label = "Music";
path = "~/Music";
type = "sendonly";
};
settings.folders.music = {
enable = true;
devices = [ "nebula" ];
path = "~/Music";
type = "sendonly";
};
user = config.constants.userName;
};
}

View file

@ -3,11 +3,10 @@
{
imports = with inputs; [
hardware.nixosModules.common-cpu-intel
] ++ [
../../common
./configuration.nix
./hardware-configuration.nix
./network.nix
./tailscale.nix
../../common
];
}

View file

@ -5,7 +5,7 @@
disko.nixosModules.default
hardware.nixosModules.common-cpu-amd
hardware.nixosModules.common-cpu-amd-pstate
] ++ [
../../common
./conduit.nix
./configuration.nix
./disko.nix
@ -16,6 +16,5 @@
./syncthing.nix
./tailscale.nix
./zfs.nix
../../common
];
}

View file

@ -9,7 +9,6 @@
wifi.backend = "iwd";
};
nftables.enable = true;
tempAddresses = "disabled";
wireless.iwd.enable = true;
};
services.openssh.enable = true;

View file

@ -1,27 +1,13 @@
{ 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 ];
id = "Music";
label = "Music";
path = "~/Music";
type = "receiveonly";
};
settings.folders.music = {
enable = true;
devices = [ "blitzar" ];
path = "~/Music";
type = "receiveonly";
};
user = config.constants.userName;
};
}

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;
};
}

View file

@ -1,8 +1,9 @@
{ inputs, ... }:
{
imports = [
inputs.mailserver.nixosModules.default
imports = with inputs; [
mailserver.nixosModules.default
../../common
./caddy.nix
./configuration.nix
./hardware-configuration.nix
@ -10,6 +11,5 @@
./mailserver.nix
./network.nix
./vaultwarden.nix
../../common
];
}