Remove steam, add VSCode
Steam doesn't work well enough on this system, everything is too slow. Try turning it into a VEX dev box instead. Didn't get that working either.
This commit is contained in:
parent
025c672bd2
commit
665a97f97e
|
@ -12,9 +12,8 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||||
"steam"
|
"code"
|
||||||
"steam-original"
|
"vscode"
|
||||||
"steam-run"
|
|
||||||
"xow_dongle-firmware"
|
"xow_dongle-firmware"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -30,20 +29,6 @@
|
||||||
|
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.users.eliribble = { pkgs, ... }: {
|
home-manager.users.eliribble = { pkgs, ... }: {
|
||||||
home.file.".config/autostart/steam.desktop".text = ''
|
|
||||||
[Desktop Entry]
|
|
||||||
Name=Steam
|
|
||||||
Comment=Application for managing and playing games on Steam
|
|
||||||
Exec=steam %U -bigpicture
|
|
||||||
Icon=steam
|
|
||||||
Terminal=false
|
|
||||||
Type=Application
|
|
||||||
Categories=Network;FileTransfer;Game;
|
|
||||||
MimeType=x-scheme-handler/steam;x-scheme-handler/steamlink;
|
|
||||||
Actions=Store;Community;Library;Servers;Screenshots;News;Settings;BigPicture;Friends;
|
|
||||||
PrefersNonDefaultGPU=true
|
|
||||||
X-KDE-RunOnDiscreteGpu=true
|
|
||||||
'';
|
|
||||||
# home.packages = [ pkgs.httpie ];
|
# home.packages = [ pkgs.httpie ];
|
||||||
|
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
|
@ -73,6 +58,13 @@
|
||||||
set -g window-status-current-style bg=red,fg=white
|
set -g window-status-current-style bg=red,fg=white
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
programs.vscode = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.vscode.fhs;
|
||||||
|
#extensions = with pkgs.vscode-extensions; [
|
||||||
|
#"VEXRobotics.vexcode"
|
||||||
|
#];
|
||||||
|
};
|
||||||
|
|
||||||
# The state version is required and should stay at the version you
|
# The state version is required and should stay at the version you
|
||||||
# originally installed.
|
# originally installed.
|
||||||
|
@ -110,16 +102,6 @@
|
||||||
desktopManager.gnome.enable = true;
|
desktopManager.gnome.enable = true;
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
systemd.user.services.steam = {
|
|
||||||
enable = true;
|
|
||||||
description = "Open Steam in the background at boot";
|
|
||||||
serviceConfig = {
|
|
||||||
ExecStart = "${pkgs.steam}/bin/steam -nochatui -nofriendsui -silent %U";
|
|
||||||
wantedBy = [ "graphical-session.target" ];
|
|
||||||
Restart = "on-failure";
|
|
||||||
RestartSec = "5s";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -152,11 +134,11 @@
|
||||||
fish
|
fish
|
||||||
git
|
git
|
||||||
htop
|
htop
|
||||||
mangohud
|
|
||||||
neovim
|
neovim
|
||||||
python3
|
python3
|
||||||
tmux
|
tmux
|
||||||
wget
|
wget
|
||||||
|
vscode
|
||||||
];
|
];
|
||||||
environment.variables.EDITOR = "nvim";
|
environment.variables.EDITOR = "nvim";
|
||||||
|
|
||||||
|
@ -179,21 +161,6 @@
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
|
|
||||||
# Set up steam
|
|
||||||
programs = {
|
|
||||||
gamescope = {
|
|
||||||
enable = true;
|
|
||||||
capSysNice = true;
|
|
||||||
};
|
|
||||||
steam = {
|
|
||||||
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
|
||||||
enable = true;
|
|
||||||
gamescopeSession.enable = true;
|
|
||||||
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
|
|
||||||
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Copy the NixOS configuration file and link it from the resulting system
|
# Copy the NixOS configuration file and link it from the resulting system
|
||||||
# (/run/current-system/configuration.nix). This is useful in case you
|
# (/run/current-system/configuration.nix). This is useful in case you
|
||||||
# accidentally delete configuration.nix.
|
# accidentally delete configuration.nix.
|
||||||
|
|
Loading…
Reference in New Issue