changed unfree rules

This commit is contained in:
2025-06-08 18:21:05 +03:00
parent ef204b0dd4
commit c0c1da930e
6 changed files with 21 additions and 18 deletions
+2 -1
View File
@@ -45,10 +45,12 @@
./hosts/generic/users.nix
./hosts/generic/home-persistence.nix
./hosts/generic/zapret.nix
./hosts/generic/allow_unfree.nix
./hosts/Aphelion/hardware-Aphelion.nix
./hosts/Aphelion/nvidia.nix
./desktop/gnome.nix
./misc/disable_suspend.nix
./home/yaroslav/steam.nix
home-manager.nixosModules.home-manager
zapret.nixosModules.zapret
{
@@ -56,7 +58,6 @@
home-manager.users.yaroslav = {
imports = [
./home/yaroslav/Aphelion/Aphelion.nix
./home/yaroslav/steam.nix
];
};
}
+1
View File
@@ -49,6 +49,7 @@ in
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"obsidian"
"yandex-music"
"steam"
];
home.packages = with pkgs; [
firefox
+2 -9
View File
@@ -1,16 +1,9 @@
{ lib, ... }:
{ config, lib, ... }:
{
programs.steam = {
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
};
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-unwrapped"
"steam-run"
];
}
+1 -6
View File
@@ -1,10 +1,5 @@
{ config, lib, ... }:
{ ... }:
{
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"nvidia-x11"
"nvidia-settings"
];
boot.initrd.kernelModules = [ "nvidia" ];
hardware.graphics.enable = true;
services.xserver.videoDrivers = [ "nvidia" ];
+1
View File
@@ -26,6 +26,7 @@
files = [
".p10k.zsh"
".zsh_history"
".config/monitors.xml"
];
};
};
+12
View File
@@ -0,0 +1,12 @@
{ lib, ... }:
{
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"nvidia-x11"
"nvidia-settings"
"steam"
"steam-unwrapped"
"steam-original"
"steam-run"
];
}