config changes (not working)

This commit is contained in:
doloro
2025-09-23 11:52:13 +00:00
parent d95ea4ec27
commit 3ad89e10d2
7 changed files with 63 additions and 17 deletions

View File

@@ -10,6 +10,7 @@
./hardware-configuration.nix
./modules/greetd/nixos.nix
./modules/stylix/nixos.nix
./modules/steam/nixos.nix
./disks.nix
];
@@ -25,7 +26,7 @@
nix.settings.experimental-features = ["flakes" "nix-command"];
# networking.hostName = "nixos"; # Define your hostname.
networking.hostName = "doloroo-main"; # Define your hostname.
nixpkgs.config.allowUnfree = true;
@@ -45,7 +46,7 @@
};
# Set your time zone.
# time.timeZone = "Europe/Amsterdam";
time.timeZone = "Europe/London";
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
@@ -103,6 +104,17 @@
package = config.boot.kernelPackages.nvidiaPackages.latest;
};
fonts = {
enableDefaultPackages = true;
packages = with pkgs; [
jetbrains-mono
material-design-icons
material-symbols
nerd-fonts.caskaydia-cove
];
fontDir.enable = true;
};
# Configure keymap in X11
# services.xserver.xkb.layout = "us";
# services.xserver.xkb.options = "eurosign:e,caps:escape";
@@ -141,13 +153,6 @@
wget
];
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;

View File

View File

@@ -0,0 +1,44 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.modules.steam;
in
{
options = {
modules.steam.enable = lib.mkEnableOption "Steam configuration module";
};
config = lib.mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
# Ensure gamescope is inside the steam "fhs"
package = pkgs.steam.override {
extraLibraries = pkgs: [ pkgs.xorg.libxcb ];
extraPkgs =
pkgs: with pkgs; [
attr
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXScrnSaver
libpng
libpulseaudio
libvorbis
stdenv.cc.cc.lib
libkrb5
keyutils
mangohud
gamemode
(gamescope.overrideAttrs { enableWsi = true; })
];
};
};
};
}

View File

@@ -11,7 +11,7 @@ in
{
imports = [
./shared.nix
#./shared.nix
inputs.stylix.homeModules.stylix
];
config = {

View File

@@ -14,10 +14,7 @@ in
./shared.nix
inputs.stylix.nixosModules.stylix
];
options = {
modules.stylix.enable = lib.mkEnableOption "Steam configuration module";
};
config = lib.mkIf cfg.enable {
config = {
stylix.enable = true;
};