Skip to content

Commit

Permalink
refactor(modules): move networking stuff to its own module
Browse files Browse the repository at this point in the history
  • Loading branch information
InioX committed Oct 15, 2023
1 parent e924bfb commit fa2f161
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
6 changes: 0 additions & 6 deletions hosts/laptop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ with zenyte-lib; {
};
};

# Enable networking and bluetooth
networking.networkmanager.enable = true;

hardware.bluetooth.enable = true;
services.blueman.enable = true;

# Additional packages to install
environment.systemPackages = with pkgs; [
discord
Expand Down
1 change: 0 additions & 1 deletion modules/system/main.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
inputs,
...
}: {
networking = {inherit hostName;};
system = {inherit stateVersion;};

users.users.${username} = {
Expand Down
20 changes: 20 additions & 0 deletions modules/system/networking.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
config,
pkgs,
hostName,
stateVersion,
username,
system,
inputs,
...
}: {
networking = {
inherit hostName;
networkmanager.enable = true;
};

# Enable networking and bluetooth

hardware.bluetooth.enable = true;
services.blueman.enable = true;
}

0 comments on commit fa2f161

Please sign in to comment.