refactoe: moce common modules into their own file

This commit is contained in:
Mohammad Rafiq 2025-04-15 09:48:47 +08:00
parent 52ec0abb0c
commit 1561628255
No known key found for this signature in database
2 changed files with 20 additions and 16 deletions

16
hosts/common.nix Normal file
View file

@ -0,0 +1,16 @@
{ lib, type, ... }:
{
imports =
[
../configs/boot.nix
../configs/nix-config.nix
../configs/security.nix
../configs/users.nix
../configs/networking.nix
../configs/shell.nix
../configs/programs/stylix.nix
]
++ lib.optionals (type == "graphical") [
../configs/graphical.nix
];
}