From 1f052fc5c5eda7dc9a5e3af97953014428bfc314 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Tue, 19 Apr 2022 01:12:27 -0400 Subject: [PATCH] Migrate out system specific configuration --- desktop.nix | 19 ------------------- flake.nix | 1 + machines/levitation.nix | 25 +++++++++++++++++++++++++ 3 files changed, 26 insertions(+), 19 deletions(-) create mode 100644 machines/levitation.nix diff --git a/desktop.nix b/desktop.nix index 70f0854..9e48ab2 100644 --- a/desktop.nix +++ b/desktop.nix @@ -30,30 +30,11 @@ ); in linuxZenWMuQSS; - # Define the hostname, enable dhcp - networking = { - hostName = "levitation"; - domain = "mccarty.io"; - useDHCP = false; - interfaces.enp5s0.useDHCP = true; - }; - ## System specific configuration - programs = { - steam.enable = true; - adb.enable = true; - }; ## Left over uncategorized packages environment.systemPackages = with pkgs; [ unstable.firefox-beta-bin wally-cli ]; - - # Enable firewall and pass some ports - networking.firewall = { - enable = true; - allowedTCPPorts = [ 61377 ]; - allowedUDPPorts = [ 61377 ]; - }; # Enable ergodox udev rules hardware.keyboard.zsa.enable = true; } diff --git a/flake.nix b/flake.nix index cbd81cf..f861ae5 100644 --- a/flake.nix +++ b/flake.nix @@ -104,6 +104,7 @@ }; modules = [ ./hardware/levitation.nix + ./machines/levitation.nix ./modules/games.nix ./home-linux.nix ] ++ desktopModules; diff --git a/machines/levitation.nix b/machines/levitation.nix new file mode 100644 index 0000000..924713c --- /dev/null +++ b/machines/levitation.nix @@ -0,0 +1,25 @@ +{ pkgs, lib, ... }: { + + # Define the hostname, enable dhcp + networking = { + hostName = "levitation"; + domain = "mccarty.io"; + useDHCP = false; + interfaces.enp5s0.useDHCP = true; + }; + + # Enable programs we don't want on every machine + programs = { + steam.enable = true; + adb.enable = true; + }; + + # Firewall ports + # 61377 - SoulSeek + # Enable firewall and pass some ports + networking.firewall = { + enable = true; + allowedTCPPorts = [ 61377 ]; + allowedUDPPorts = [ 61377 ]; + }; +}