nixos-config/modules/common/default.nix

29 lines
574 B
Nix
Raw Normal View History

2024-04-11 20:15:47 +02:00
{
lib,
config,
pkgs,
modulesPath,
...
}:
with lib;
{
imports = [
./boot.nix
./linux.nix
./nix.nix
./network.nix
./hardware.nix
./users.nix
(modulesPath + "/installer/scan/not-detected.nix")
];
2024-08-01 21:40:51 +02:00
# Only enable fish shell if there is at least one user using it.
programs.fish.enable = builtins.any (user: user.shell == pkgs.fish) (
builtins.attrValues config.my.users
);
2024-08-01 21:40:51 +02:00
# We always want to disable the X server as only workstation use windows manager
# and they always use wayland.
services.xserver.enable = false;
}