pantheon/hosts/common.nix
2025-05-06 15:54:26 +08:00

28 lines
572 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";
nix-config.enable = true;
boot-config.enable = true;
hardware-config.usbAutoMount = true;
nw-config.backend = "networkmanager";
hmModules.enable = true;
hmModules.mainApps.editor = "nvf";
}