Migrate out system specific configuration

This commit is contained in:
Nathan McCarty 2022-04-19 01:12:27 -04:00
parent d041b69258
commit 1f052fc5c5
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
3 changed files with 26 additions and 19 deletions

View File

@ -30,30 +30,11 @@
); );
in in
linuxZenWMuQSS; 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 ## Left over uncategorized packages
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
unstable.firefox-beta-bin unstable.firefox-beta-bin
wally-cli wally-cli
]; ];
# Enable firewall and pass some ports
networking.firewall = {
enable = true;
allowedTCPPorts = [ 61377 ];
allowedUDPPorts = [ 61377 ];
};
# Enable ergodox udev rules # Enable ergodox udev rules
hardware.keyboard.zsa.enable = true; hardware.keyboard.zsa.enable = true;
} }

View File

@ -104,6 +104,7 @@
}; };
modules = [ modules = [
./hardware/levitation.nix ./hardware/levitation.nix
./machines/levitation.nix
./modules/games.nix ./modules/games.nix
./home-linux.nix ./home-linux.nix
] ++ desktopModules; ] ++ desktopModules;

25
machines/levitation.nix Normal file
View File

@ -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 ];
};
}