rename unfree option, open firewall for steam local network transfer

This commit is contained in:
Vinzenz Schroeter 2024-10-27 10:42:23 +01:00
parent 5b19e487a5
commit 8a53ddb890
8 changed files with 60 additions and 23 deletions

View file

@ -3,7 +3,7 @@
lib,
...
}: {
options.my.allowUnfreePackages = lib.mkOption {
options.allowedUnfreePackages = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [];
example = ["steam"];
@ -11,7 +11,7 @@
config = {
nixpkgs.config = {
# https://github.com/NixOS/nixpkgs/issues/197325#issuecomment-1579420085
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.my.allowUnfreePackages;
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.allowedUnfreePackages;
};
nix = {
@ -25,6 +25,7 @@
dates = "daily";
options = "--delete-older-than 7d";
};
optimise.automatic = true;
};
system = {

View file

@ -17,6 +17,7 @@
mkhl.direnv
vadimcn.vscode-lldb
ms-dotnettools.csharp
ms-vscode-remote.remote-ssh
];
userSettings = {
"git.autofetch" = true;

View file

@ -1,4 +1,8 @@
{pkgs, lib, ...}: {
{
pkgs,
lib,
...
}: {
security.acme = {
acceptTerms = true;
defaults.email = "acme@zerforschen.plus";

View file

@ -15,6 +15,6 @@
fileSystems = import ./fstab.nix;
swapDevices = [];
interfaces.eno1.wakeOnLan.enable = true;
networking.interfaces.eno1.wakeOnLan.enable = true;
};
}

View file

@ -100,19 +100,6 @@
hunspellDicts.en-us-large
];
nixpkgs.config.permittedInsecurePackages = [];
my.allowUnfreePackages = [
"insync"
"insync-pkg"
"rider"
"pycharm-professional"
"jetbrains-toolbox"
"anydesk"
];
fonts = {
enableDefaultPackages = true;
fontconfig.defaultFonts.monospace = ["FiraCode Nerd Font"];

View file

@ -34,16 +34,48 @@
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
gamescopeSession.enable = true;
};
gamemode.enable = true;
};
networking.firewall.allowedUDPPorts = [
networking.firewall = {
allowedUDPPorts = [
# Factorio
34197
# steam network transfer
3478
];
my.allowUnfreePackages = [
allowedTCPPorts = [
# steam network transfer
24070
];
allowedTCPPortRanges = [
# steam network transfer
{
from = 27015;
to = 27050;
}
];
allowedUDPPortRanges = [
# steam network transfer
{
from = 4379;
to = 4380;
}
{
from = 27000;
to = 27100;
}
];
};
allowedUnfreePackages = [
"steam"
"steam-original"
"steam-run"

View file

@ -23,6 +23,6 @@
environment.systemPackages = with pkgs; [
nvtopPackages.intel
];
my.allowUnfreePackages = ["intel-ocl"];
allowedUnfreePackages = ["intel-ocl"];
};
}

View file

@ -9,5 +9,17 @@
shell = pkgs.zsh;
autoSubUidGidRange = true;
};
allowedUnfreePackages = [
"vscode-extension-ms-vscode-remote-remote-ssh"
"insync"
"insync-pkg"
"rider"
"pycharm-professional"
"jetbrains-toolbox"
"anydesk"
];
};
}