mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat: add gaming specialisation
the home-manager aspect of it does not work currently (packages do not become available when enabled)
This commit is contained in:
parent
39f2058b7a
commit
ac1d1a24e7
4 changed files with 87 additions and 71 deletions
|
|
@ -919,11 +919,11 @@ My work machine. Built for more security, this is the gold standard of my config
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./disk-config.nix
|
./disk-config.nix
|
||||||
|
|
||||||
"${profilesPath}/optional/nixos/steam.nix"
|
|
||||||
"${profilesPath}/optional/nixos/virtualbox.nix"
|
"${profilesPath}/optional/nixos/virtualbox.nix"
|
||||||
# "${profilesPath}/optional/nixos/vmware.nix"
|
# "${profilesPath}/optional/nixos/vmware.nix"
|
||||||
"${profilesPath}/optional/nixos/autologin.nix"
|
"${profilesPath}/optional/nixos/autologin.nix"
|
||||||
"${profilesPath}/optional/nixos/nswitch-rcm.nix"
|
"${profilesPath}/optional/nixos/nswitch-rcm.nix"
|
||||||
|
"${profilesPath}/optional/nixos/gaming.nix"
|
||||||
"${profilesPath}/optional/nixos/work.nix"
|
"${profilesPath}/optional/nixos/work.nix"
|
||||||
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
|
@ -5890,8 +5890,10 @@ These sets of configuration do not need to be deployed on every host, for a mult
|
||||||
This opens a few gaming ports and installs the steam configuration suite for gaming. There are more options in [[#h:84fd7029-ecb6-4131-9333-289982f24ffa][Gaming]] (home-manager side).
|
This opens a few gaming ports and installs the steam configuration suite for gaming. There are more options in [[#h:84fd7029-ecb6-4131-9333-289982f24ffa][Gaming]] (home-manager side).
|
||||||
|
|
||||||
#+begin_src nix :tangle profiles/optional/nixos/gaming.nix
|
#+begin_src nix :tangle profiles/optional/nixos/gaming.nix
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
specialisation = {
|
||||||
|
gaming.configuration = {
|
||||||
networking = {
|
networking = {
|
||||||
firewall = {
|
firewall = {
|
||||||
allowedUDPPorts = [ 4380 27036 14242 34197 ]; # 34197: factorio; 4380 27036 14242: barotrauma;
|
allowedUDPPorts = [ 4380 27036 14242 34197 ]; # 34197: factorio; 4380 27036 14242: barotrauma;
|
||||||
|
|
@ -5917,10 +5919,12 @@ This opens a few gaming ports and installs the steam configuration suite for gam
|
||||||
hardware.xone.enable = true;
|
hardware.xone.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
linuxKernel.packages.linux_6_10.xone
|
pkgs.linuxKernel.packages.linux_6_12.xone
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
@ -8922,6 +8926,8 @@ The rest of the settings is at [[#h:fb3f3e01-7df4-4b06-9e91-aa9cac61a431][gaming
|
||||||
#+begin_src nix :tangle profiles/optional/home/gaming.nix
|
#+begin_src nix :tangle profiles/optional/home/gaming.nix
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
# specialisation = {
|
||||||
|
# gaming.configuration = {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
stable.lutris
|
stable.lutris
|
||||||
wine
|
wine
|
||||||
|
|
@ -8944,6 +8950,8 @@ The rest of the settings is at [[#h:fb3f3e01-7df4-4b06-9e91-aa9cac61a431][gaming
|
||||||
prismlauncher # has overrides
|
prismlauncher # has overrides
|
||||||
temurin-bin-17
|
temurin-bin-17
|
||||||
];
|
];
|
||||||
|
# };
|
||||||
|
# };
|
||||||
}
|
}
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,11 @@ in
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./disk-config.nix
|
./disk-config.nix
|
||||||
|
|
||||||
"${profilesPath}/optional/nixos/steam.nix"
|
|
||||||
"${profilesPath}/optional/nixos/virtualbox.nix"
|
"${profilesPath}/optional/nixos/virtualbox.nix"
|
||||||
# "${profilesPath}/optional/nixos/vmware.nix"
|
# "${profilesPath}/optional/nixos/vmware.nix"
|
||||||
"${profilesPath}/optional/nixos/autologin.nix"
|
"${profilesPath}/optional/nixos/autologin.nix"
|
||||||
"${profilesPath}/optional/nixos/nswitch-rcm.nix"
|
"${profilesPath}/optional/nixos/nswitch-rcm.nix"
|
||||||
|
"${profilesPath}/optional/nixos/gaming.nix"
|
||||||
"${profilesPath}/optional/nixos/work.nix"
|
"${profilesPath}/optional/nixos/work.nix"
|
||||||
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
# specialisation = {
|
||||||
|
# gaming.configuration = {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
stable.lutris
|
stable.lutris
|
||||||
wine
|
wine
|
||||||
|
|
@ -22,4 +24,6 @@
|
||||||
prismlauncher # has overrides
|
prismlauncher # has overrides
|
||||||
temurin-bin-17
|
temurin-bin-17
|
||||||
];
|
];
|
||||||
|
# };
|
||||||
|
# };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
specialisation = {
|
||||||
|
gaming.configuration = {
|
||||||
networking = {
|
networking = {
|
||||||
firewall = {
|
firewall = {
|
||||||
allowedUDPPorts = [ 4380 27036 14242 34197 ]; # 34197: factorio; 4380 27036 14242: barotrauma;
|
allowedUDPPorts = [ 4380 27036 14242 34197 ]; # 34197: factorio; 4380 27036 14242: barotrauma;
|
||||||
|
|
@ -25,7 +27,9 @@
|
||||||
hardware.xone.enable = true;
|
hardware.xone.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
linuxKernel.packages.linux_6_10.xone
|
pkgs.linuxKernel.packages.linux_6_12.xone
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue