From 0634385f813a904e668e8f96921b86187fe94027 Mon Sep 17 00:00:00 2001 From: "Mohamed C." Date: Tue, 3 Mar 2026 00:47:23 +0100 Subject: [PATCH] more hardware and network settings --- modules/hosts/computer-mo/hardware.nix | 1 + networking.nix | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 networking.nix diff --git a/modules/hosts/computer-mo/hardware.nix b/modules/hosts/computer-mo/hardware.nix index 9048c54..c779620 100644 --- a/modules/hosts/computer-mo/hardware.nix +++ b/modules/hosts/computer-mo/hardware.nix @@ -4,5 +4,6 @@ boot.kernelParams = [ "quiet" "splash" "boot.shell_on_fail" "loglevel=3" "rd.systemd.show_status=false" "rd.udev.log_level=3" "udev.log_priority=3" ]; nixpkgs.hostPlatform = "x86_64-linux"; hardware.cpu.amd.updateMicrocode = true; + networking.hostName = computer-mo; }; } diff --git a/networking.nix b/networking.nix new file mode 100644 index 0000000..85fdbcb --- /dev/null +++ b/networking.nix @@ -0,0 +1,7 @@ +{ ... }: { + flake.nixosModules.network = {lib, hostName, ... }:{ + networking.firewall.enable = true; + networking.useDHCP = true; + networking.networkmanager.enable = true; + }; +}