grimm-nixos-laptop/hardening/systemd/global/syscall_arch.nix

23 lines
439 B
Nix
Raw Normal View History

2025-01-26 21:43:23 +01:00
{ lib, config, ... }:
let
inherit (lib) types mkIf mkDefault;
osConfig = config;
in
{
options.systemd.services = lib.mkOption {
type = types.attrsOf (
lib.types.submodule {
config.serviceConfig = mkIf (osConfig.specialisation != { }) {
2025-02-24 01:32:21 +01:00
# SystemCallArchitectures = mkDefault "native";
2025-01-26 21:43:23 +01:00
};
}
);
};
config = mkIf (config.specialisation != { }) {
systemd.services = {
};
};
}