pantheon/hosts/common.nix
2025-05-03 12:40:20 +08:00

26 lines
534 B
Nix

{
lib,
hostname,
type,
...
}:
{
imports =
[
../configs/security.nix
../configs/users.nix
../configs/shell.nix
../configs/programs/stylix.nix
]
++ lib.optionals (type == "graphical") [
../configs/graphical.nix
];
nixosModules.enable = true;
nixosModules.hostname = hostname;
nixosModules.mainUser = "rafiq";
hmModules.enable = true;
nix-config.enable = true;
boot-config.enable = true;
hardware-config.usbAutoMount = true;
nw-config.backend = "networkmanager";
}