clean up & steam server

This commit is contained in:
ari committed 2025-02-11 21:05:28 -05:00
1 parent 991bb94ce2
commit 030ef2e500
4 files changed
+34 -37

No files matched your search

+3 -3
View File
@@ -11,7 +11,7 @@
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
security.protectKernelImage = false;
security.protectKernelImage = false;
fileSystems."/" = {
device = "/dev/disk/by-uuid/3fbf3ccf-655a-4040-b898-b97a1d555912";
@@ -32,10 +32,10 @@
swapDevices =
[
{ device = "/dev/disk/by-uuid/5175a4b0-0067-47c6-b7da-35acb247f134"; }
# { device = "/dev/disk/by-uuid/5175a4b0-0067-47c6-b7da-35acb247f134"; }
{
device = "/swapfile";
size = 16 * 1024; # 16GB
size = 48 * 1024; # 48GB
}
];
+22 -23
View File
@@ -1,5 +1,5 @@
{ user }:
{ pkgs, lib, config, ... }:
{ pkgs, ... }:
let
scriptsFolder = builtins.filterSource (p: t: true) ./scripts/fw1;
in
@@ -23,27 +23,26 @@ in
boot.tmp.useTmpfs = true;
# Game Engine
boot.kernelPackages = pkgs.linuxPackages; # (this is the default) some amdgpu issues on 6.10
programs = {
gamescope = {
enable = true;
capSysNice = true;
};
steam = {
enable = true;
gamescopeSession.enable = true;
extest.enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
};
};
services.getty.autologinUser = "ari";
environment = {
systemPackages = with pkgs;[ mangohud ];
loginShellInit = ''
[[ "$(tty)" = "/dev/tty1" ]] && ${scriptsFolder}/gs.sh
'';
};
# programs = {
# gamescope = {
# enable = true;
# capSysNice = true;
# };
# steam = {
# enable = true;
# gamescopeSession.enable = true;
# extest.enable = true;
# remotePlay.openFirewall = true;
# dedicatedServer.openFirewall = true;
# localNetworkGameTransfers.openFirewall = true;
# };
# };
# services.getty.autologinUser = "ari";
# environment = {
# systemPackages = with pkgs;[ mangohud ];
# loginShellInit = ''
# [[ "$(tty)" = "/dev/tty1" ]] && ${scriptsFolder}/gs.sh
# '';
# };
}
+9 -1
View File
@@ -6,6 +6,9 @@
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.availableKernelModules =
[ "ahci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
@@ -21,7 +24,12 @@
device = "/dev/disk/by-uuid/01FE-EDCC";
fsType = "vfat";
};
# Data
fileSystems."/mnt/Data" = {
device = "/dev/disk/by-uuid/ee4a60a8-b0d1-4f5c-a554-1d1d84c89e34";
fsType = "ext4";
options = [ "defaults" ];
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
-10
View File
@@ -27,16 +27,6 @@ in
};
# firmware updater
services.fwupd.enable = true;
# # Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# # Data
fileSystems."/mnt/Data" = {
device = "/dev/disk/by-uuid/ee4a60a8-b0d1-4f5c-a554-1d1d84c89e34";
fsType = "ext4";
options = [ "defaults" ];
};
# # Services
skyg.nixos.server.services = {
audiobookshelf = {