refactor(nixosModules): moved networking config to a module

This commit is contained in:
Mohammad Rafiq 2025-04-28 10:15:52 +08:00
parent cb164afe12
commit 36b1088d34
No known key found for this signature in database
6 changed files with 93 additions and 76 deletions

View file

@ -1,10 +1,14 @@
{ lib, type, ... }:
{
lib,
hostname,
type,
...
}:
{
imports =
[
../configs/security.nix
../configs/users.nix
../configs/networking.nix
../configs/shell.nix
../configs/programs/stylix.nix
]
@ -12,8 +16,10 @@
../configs/graphical.nix
];
nixosModules.enable = true;
nixosModules.hostname = hostname;
hmModules.enable = true;
nix-config.enable = true;
boot-config.enable = true;
hardware-config.usbAutoMount = true;
nw-config.backend = "networkmanager";
}