From c9ade836ec93ca107fc425820d2a15cb2655e295 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 24 Mar 2024 14:07:13 -0400 Subject: [PATCH] system: reformatted with nixfmt --- system/default.nix | 12 +++--------- system/network.nix | 22 +++++++++++++++++----- system/sound.nix | 2 +- 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/system/default.nix b/system/default.nix index a72a2a87..74a8a05f 100644 --- a/system/default.nix +++ b/system/default.nix @@ -1,11 +1,7 @@ { config, pkgs, ... }: { - imports = - [ - ./network.nix - ./sound.nix - ]; + imports = [ ./network.nix ./sound.nix ]; # Set your time zone. time.timeZone = "America/New_York"; @@ -73,10 +69,8 @@ auto-optimise-store = true; # Enable experimental `nix` command and flakes. experimental-features = [ "nix-command" "flakes" ]; - substituters = [ - "https://nixcache.raffauflabs.com" - "https://cache.nixos.org/" - ]; + substituters = + [ "https://nixcache.raffauflabs.com" "https://cache.nixos.org/" ]; trusted-public-keys = [ "nixcache.raffauflabs.com:yFIuJde/izA4aUDI3MZmBLzynEsqVCT1OfCUghOLlt8=" ]; diff --git a/system/network.nix b/system/network.nix index 8d9134eb..a9781dbb 100644 --- a/system/network.nix +++ b/system/network.nix @@ -4,18 +4,30 @@ # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. networking = { networkmanager.enable = true; - + firewall.allowedTCPPortRanges = [ # KDE Connect - { from = 1714; to = 1764; } + { + from = 1714; + to = 1764; + } # Soulseek - { from = 2234; to = 2239; } + { + from = 2234; + to = 2239; + } ]; firewall.allowedUDPPortRanges = [ # KDE/GS Connect - { from = 1714; to = 1764; } + { + from = 1714; + to = 1764; + } # Soulseek - { from = 2234; to = 2239; } + { + from = 2234; + to = 2239; + } ]; }; diff --git a/system/sound.nix b/system/sound.nix index 3c660acc..efcbb5b8 100644 --- a/system/sound.nix +++ b/system/sound.nix @@ -15,4 +15,4 @@ alsa.support32Bit = true; pulse.enable = true; }; -} \ No newline at end of file +}