media and gaming

This commit is contained in:
Benjamin Palko 2024-07-15 20:54:39 -04:00
parent 7afe711932
commit a62a45f9f4
6 changed files with 25 additions and 19 deletions

View file

@ -1,4 +1,4 @@
{ inputs, pkgs, ... }: { ... }:
{ {
imports = [ imports = [
<home-manager/nixos> <home-manager/nixos>

View file

@ -1,6 +1,9 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
home.packages = with pkgs; [ spotify ]; home.packages = with pkgs; [
spotify
mplayer
];
programs.cava = { programs.cava = {
enable = true; enable = true;
}; };

8
nixos/gaming.nix Normal file
View file

@ -0,0 +1,8 @@
{ pkgs, ... }:
{
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
};
}

View file

@ -2,7 +2,6 @@
{ {
programs.hyprland = { programs.hyprland = {
enable = true; enable = true;
#xwayland.enable = true;
}; };
programs.hyprlock.enable = true; programs.hyprlock.enable = true;
services.hypridle.enable = true; services.hypridle.enable = true;
@ -11,11 +10,20 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
hyprcursor hyprcursor
waybar waybar
# Apps
rofi-wayland rofi-wayland
# Notifications
swaynotificationcenter swaynotificationcenter
inotify-tools
# Wallpaper
swww swww
pywal pywal
# Emoji
emote emote
# Screenshots
grim
slurp
swappy
]; ];
environment.sessionVariables.NIXOS_OZONE_WL = "1"; environment.sessionVariables.NIXOS_OZONE_WL = "1";

View file

@ -14,10 +14,11 @@ in
./system.nix ./system.nix
./network.nix ./network.nix
./nvidia.nix ./nvidia.nix
./audio.nix ./media.nix
./services.nix ./services.nix
./shell.nix ./shell.nix
./hyprland.nix ./hyprland.nix
./gaming.nix
]; ];
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
@ -47,8 +48,8 @@ in
home.username = username; home.username = username;
home.homeDirectory = "/home/${username}"; home.homeDirectory = "/home/${username}";
imports = [ imports = [
../home-manager/audio.nix
../home-manager/hyprland.nix ../home-manager/hyprland.nix
../home-manager/media.nix
../home-manager/nvim.nix ../home-manager/nvim.nix
../home-manager/terminal.nix ../home-manager/terminal.nix
./home.nix ./home.nix
@ -62,27 +63,13 @@ in
# System # System
gcc gcc
cmake cmake
sass
unzip unzip
ffmpeg ffmpeg
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
wget wget
inotify-tools
killall killall
brightnessctl
fd
# Screenshots
grim
slurp
swappy
]; ];
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
};
# 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.