refactor(nixosModules): moved networking config to a module
This commit is contained in:
parent
cb164afe12
commit
36b1088d34
6 changed files with 93 additions and 76 deletions
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -10,4 +10,6 @@
|
|||
hardware-config.gpu = "nvidia";
|
||||
gaming.steam.enable = true;
|
||||
fs-config.mountHeliosData = true;
|
||||
nw-config.wol.enable = true;
|
||||
nw-config.wol.interface = "enp12s0";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue